]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: f_rndis: fix an error code on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 May 2014 12:26:55 +0000 (15:26 +0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Jun 2014 13:52:14 +0000 (08:52 -0500)
commit4683ae86267f22dcd490953400c1d3fa12bcaccd
treea5313c9b7bec2a99d8d5640155616560bca49d18
parentf2af74123f8c5a735248547f4286a3adc28633c1
usb: gadget: f_rndis: fix an error code on allocation failure

This should be return -ENOMEM.  The current code returns successs.

Fixes: de7a8d2d534f ('usb: gadget: f_rndis: OS descriptors support')
Acked-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_rndis.c