]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: gpio: fix null-deref on short irq requests
authorJohan Hovold <johan@hovoldconsulting.com>
Fri, 27 Mar 2015 11:45:41 +0000 (12:45 +0100)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 30 Mar 2015 13:17:37 +0000 (15:17 +0200)
commit1842dd8b7bc7d713d3c252a501411b5009b3987d
tree424f1f6c6fee9a1d9fa72a4f57c8b11dbe9b1bca
parent0150bd7f23618eb4feb293f4db007833555a887f
greybus: gpio: fix null-deref on short irq 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>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/gpio.c