mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
netxen: fix file firmware leak
Release file firmware when no firmware reset is required. Signed-off-by: Dhananjay Phadke <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ea6828b8aa
commit
ec5c50cb93
1 changed files with 3 additions and 2 deletions
|
|
@ -817,7 +817,7 @@ netxen_start_firmware(struct netxen_adapter *adapter)
|
|||
if (err < 0)
|
||||
goto err_out;
|
||||
if (err == 0)
|
||||
goto wait_init;
|
||||
goto ready;
|
||||
|
||||
if (first_boot != 0x55555555) {
|
||||
NXWR32(adapter, CRB_CMDPEG_STATE, 0);
|
||||
|
|
@ -860,6 +860,7 @@ netxen_start_firmware(struct netxen_adapter *adapter)
|
|||
| (_NETXEN_NIC_LINUX_SUBVERSION);
|
||||
NXWR32(adapter, CRB_DRIVER_VERSION, val);
|
||||
|
||||
ready:
|
||||
NXWR32(adapter, NX_CRB_DEV_STATE, NX_DEV_READY);
|
||||
|
||||
wait_init:
|
||||
|
|
@ -874,7 +875,7 @@ wait_init:
|
|||
|
||||
netxen_check_options(adapter);
|
||||
|
||||
return 0;
|
||||
/* fall through and release firmware */
|
||||
|
||||
err_out:
|
||||
netxen_release_firmware(adapter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue