forked from rubenslte/android_kernel_samsung_msm8226
usb: gadget: qc_rndis: Clean up code to allow patches to apply cleanly
Change-Id: Ib77e131591d0518199c3cc01e1770858200354e7 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
2555390e4b
commit
d5a0cfb8bb
@@ -1107,10 +1107,13 @@ rndis_qc_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN],
|
||||
|
||||
status = usb_add_function(c, &rndis->port.func);
|
||||
if (status) {
|
||||
kfree(rndis);
|
||||
fail:
|
||||
rndis_exit();
|
||||
goto fail;
|
||||
}
|
||||
|
||||
fail:
|
||||
kfree(rndis);
|
||||
_rndis_qc = NULL;
|
||||
rndis_exit();
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user