diff options
author | Michal Pecio <michal.pecio@gmail.com> | 2013-03-08 22:42:03 +0100 |
---|---|---|
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, 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; |