[PATCH 5.10 106/138] netrom: check buffer length before accessing it