bcm43xx: fix dyn tssi2dbm memleak
Subsystems (3)
PATCH 1/1 bcm43xx: fix dyn tssi2dbm memleak
This patch fixes a memory leak spotted by the Coverity checker.
Signed-off-by Adrian Bunk <[email protected]>
Signed-off-by Michael Buesch <[email protected]>
drivers/net/wireless/bcm43xx/bcm43xx_phy.c +1 -0
@@ -2151,6 +2151,7 @@ phy->tssi2dbm =NULL ; printk(KERN_ERR PFX "Could not generate " "tssi2dBm table\n"); +kfree (dyn_tssi2dbm);return -ENODEV ; } phy->tssi2dbm = dyn_tssi2dbm;
Signature · 1 line
Greetings Michael.