mainlining shenanigans
Go to file
Johan Hovold 36257f6b4e greybus: hid: fix null-deref on short report requests
Make sure to verify the length of incoming requests before trying to
parse the request buffer, which can even be NULL on empty requests.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
2015-03-30 15:20:33 +02:00
drivers/staging/greybus greybus: hid: fix null-deref on short report requests 2015-03-30 15:20:33 +02:00