usb: gadget: u_uac1: NULL dereference on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 28 Feb 2013 04:44:38 +0000 (07:44 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Mar 2013 11:16:45 +0000 (13:16 +0200)
commit29240e2392786c39007df2f4162f3dc4680f3dec
tree8d23c2750c32090bfc371ff83dfa590b113df401
parentfddedd8334d8b4ac6374894d5eed237d18ce1afb
usb: gadget: u_uac1: NULL dereference on error path

We should return here with an error code instead of continuing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/u_uac1.c