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)
commit4363b57786f8e5c82d52906d4dd29bf67304564e
tree54c596d85dc5fda21165fda4cff3a2389adeeb03
parent720d3f1609a18310cbd995493e86530b669909c4
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>
drivers/net/wireless/orinoco/orinoco_usb.c