mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
orinoco_usb: don't release nonexistent firmware
Initialize fw_entry to NULL to prevent cleanup code from passing bogus pointer to release_firmware() when priv allocation fails. Signed-off-by: Michal Pecio <michal.pecio@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
720d3f1609
commit
4363b57786
1 changed files with 1 additions and 1 deletions
|
@ -1584,7 +1584,7 @@ static int ezusb_probe(struct usb_interface *interface,
|
|||
struct ezusb_priv *upriv = NULL;
|
||||
struct usb_interface_descriptor *iface_desc;
|
||||
struct usb_endpoint_descriptor *ep;
|
||||
const struct firmware *fw_entry;
|
||||
const struct firmware *fw_entry = NULL;
|
||||
int retval = 0;
|
||||
int i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue