Skip to content

Commit

Permalink
orinoco_usb: don't release nonexistent firmware
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Pecio authored and John W. Linville committed Mar 11, 2013
1 parent 720d3f1 commit 4363b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/orinoco/orinoco_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4363b57

Please sign in to comment.