[PATCH 6.12 047/156] netrom: check buffer length before accessing it