diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-04-13 00:27:49 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-04-19 21:25:40 (GMT) |
commit | 2230daa0fd50bf82303fd8da96b088310851d803 (patch) | |
tree | 48496c9d1316251c99c31731c5ba0e88c8fcb1ba | |
parent | 93fef7dda4002ac8b21a4a2090ca475dc40cc384 (diff) | |
download | linux-fsl-qoriq-2230daa0fd50bf82303fd8da96b088310851d803.tar.xz |
[PATCH] bcm43xx: fix dyn tssi2dbm memleak
This patch fixes a memory leak spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/bcm43xx/bcm43xx_phy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c index 0a66f43..3313716 100644 --- a/drivers/net/wireless/bcm43xx/bcm43xx_phy.c +++ b/drivers/net/wireless/bcm43xx/bcm43xx_phy.c @@ -2151,6 +2151,7 @@ int bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm) phy->tssi2dbm = NULL; printk(KERN_ERR PFX "Could not generate " "tssi2dBm table\n"); + kfree(dyn_tssi2dbm); return -ENODEV; } phy->tssi2dbm = dyn_tssi2dbm; |