[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>
This commit is contained in:
parent
93fef7dda4
commit
2230daa0fd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue