USB: rndis: Fix for handling garbled messages
authorMichel Pollet <michel.pollet@bp.renesas.com>
Thu, 10 May 2018 13:09:09 +0000 (14:09 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 May 2018 07:24:28 +0000 (10:24 +0300)
commit1ca532e9916a277b0e87271e6b367a3774808035
tree844261bdb0df24de8ea129daef6a4cb89425cb2d
parent44feb8e6ea2d3743d1d90dc5a05dc458dedd71d0
USB: rndis: Fix for handling garbled messages

A message can be forged to crash the stack; here we make sure we don't
completely break the system if this occurs

Signed-off-by: Michel Pollet <michel.pollet@bp.renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/rndis.c