usb: gadget: f_uac1: check return code from config_ep_by_speed
authorMichael Trimarchi <michael@amarulasolutions.com>
Mon, 18 May 2015 15:28:58 +0000 (17:28 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 May 2015 15:15:09 +0000 (10:15 -0500)
commitca4de53c522f261e84efb659a07435bd1a5a8828
tree29342f7d5999daf59da2c43ec660abc5c87b5b87
parent49a79d8b0a5f8239b8424a3eb730006faada0ad8
usb: gadget: f_uac1: check return code from config_ep_by_speed

Not checking config_ep_by_speed could lead to a kernel
NULL pointer dereference error in usb_ep_enable

Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_uac1.c