]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
orinoco_usb: don't release nonexistent firmware
authorMichal Pecio <michal.pecio@gmail.com>
Fri, 8 Mar 2013 21:42:03 +0000 (22:42 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Mar 2013 19:06:13 +0000 (15:06 -0400)
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>
drivers/net/wireless/orinoco/orinoco_usb.c

index 7744f42de1eaa7c95e1f4da84b39cb81d3af099d..1f9cb55c33608c1a5daeab253ebd9372da8827e7 100644 (file)
@@ -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;