Always initialize fw_entry with NULL
Subsystems (3)
PATCH 1/1 Always initialize fw_entry with NULL
Otherwise the exit code path might try to release a non-existing firmware object on an error condition.
Issue detected by cppcheck.
Resending to netdev as orionco-devel seems to be sleeping.
Signed-off-by Thomas Jarosch <[email protected]>
--- drivers/net/wireless/orinoco/orinoco_usb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
(quoted diff) +0 -0
b/drivers/net/wireless/orinoco/orinoco_usb.c
index 811e87f..973a55f 100644
drivers/net/wireless/orinoco/orinoco_usb.c +0 -0
@@ -1579,7 +1579,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;
Signature · 1 line
1.7.4.4