mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 15:33:47 +00:00
usb: gadget: function: Added usb_assign_descriptors failure check
Added failure check for usb_assign_descriptors call in bind function. Acked-By: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Pavitrakumar Managutte <pavitra1729@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
3e87d9a3de
commit
8b920f16e6
1 changed files with 3 additions and 0 deletions
|
@ -1441,6 +1441,9 @@ static int ncm_bind(struct usb_configuration *c, struct usb_function *f)
|
||||||
|
|
||||||
status = usb_assign_descriptors(f, ncm_fs_function, ncm_hs_function,
|
status = usb_assign_descriptors(f, ncm_fs_function, ncm_hs_function,
|
||||||
NULL);
|
NULL);
|
||||||
|
if (status)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* NOTE: all that is done without knowing or caring about
|
* NOTE: all that is done without knowing or caring about
|
||||||
* the network link ... which is unavailable to this code
|
* the network link ... which is unavailable to this code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue