summaryrefslogtreecommitdiffstats
path: root/drivers/net/vxge/vxge-main.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-01-13 11:25:20 +0100
committerDavid S. Miller <davem@davemloft.net>2011-01-14 06:48:26 +0100
commite84f885ebfb43b1ebb1481ee8bb2018743f947e9 (patch)
treea5844259eac44bc6e5119e5c96fdaeb28aa78bdf /drivers/net/vxge/vxge-main.c
parentnetdev: bfin_mac: Remove is_multicast_ether_addr use in netdev_for_each_mc_addr (diff)
downloadlinux-e84f885ebfb43b1ebb1481ee8bb2018743f947e9.tar.xz
linux-e84f885ebfb43b1ebb1481ee8bb2018743f947e9.zip
vxge: Remember to release firmware after upgrading firmware
Regardless of whether the firmware update being performed by vxge_fw_upgrade() is a success or not we must still remember to always release_firmware() before returning. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Ram Vepa <ram.vepa@exar.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/vxge/vxge-main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c
index 1ac9b568f1b0..c81a6512c683 100644
--- a/drivers/net/vxge/vxge-main.c
+++ b/drivers/net/vxge/vxge-main.c
@@ -4120,6 +4120,7 @@ int vxge_fw_upgrade(struct vxgedev *vdev, char *fw_name, int override)
"hotplug event.\n");
out:
+ release_firmware(fw);
return ret;
}