diff options
author | Michal Pecio <michal.pecio@gmail.com> | 2013-03-08 16:42:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-11 15:06:13 -0400 |
commit | 4363b57786f8e5c82d52906d4dd29bf67304564e (patch) | |
tree | 54c596d85dc5fda21165fda4cff3a2389adeeb03 /drivers/net/wireless/orinoco | |
parent | 720d3f1609a18310cbd995493e86530b669909c4 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/orinoco_usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c index 7744f42de1ea..1f9cb55c3360 100644 --- a/drivers/net/wireless/orinoco/orinoco_usb.c +++ b/drivers/net/wireless/orinoco/orinoco_usb.c | |||
@@ -1584,7 +1584,7 @@ static int ezusb_probe(struct usb_interface *interface, | |||
1584 | struct ezusb_priv *upriv = NULL; | 1584 | struct ezusb_priv *upriv = NULL; |
1585 | struct usb_interface_descriptor *iface_desc; | 1585 | struct usb_interface_descriptor *iface_desc; |
1586 | struct usb_endpoint_descriptor *ep; | 1586 | struct usb_endpoint_descriptor *ep; |
1587 | const struct firmware *fw_entry; | 1587 | const struct firmware *fw_entry = NULL; |
1588 | int retval = 0; | 1588 | int retval = 0; |
1589 | int i; | 1589 | int i; |
1590 | 1590 | ||