Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4363b577 authored by Michal Pecio's avatar Michal Pecio Committed by John W. Linville
Browse files

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: default avatarMichal Pecio <michal.pecio@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 720d3f16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;