]> git.baikalelectronics.ru Git - kernel.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)
commit04860de5be1f5ecbff80e2753f5f8f1ce7912a56
treea5313c9b7bec2a99d8d5640155616560bca49d18
parentdcc7bbfe23a54ce8a32189703a759af0967f1680
usb: gadget: f_rndis: fix an error code on allocation failure

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

Fixes: 5e200eb0beb4 ('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