[PATCH 4.4 009/190] bna: Avoid reading past end of buffer