Commit 2230daa0 authored by Adrian Bunk's avatar Adrian Bunk Committed by John W. Linville

[PATCH] bcm43xx: fix dyn tssi2dbm memleak

This patch fixes a memory leak spotted by the Coverity checker.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 93fef7dd
...@@ -2151,6 +2151,7 @@ int bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm) ...@@ -2151,6 +2151,7 @@ int bcm43xx_phy_init_tssi2dbm_table(struct bcm43xx_private *bcm)
phy->tssi2dbm = NULL; phy->tssi2dbm = NULL;
printk(KERN_ERR PFX "Could not generate " printk(KERN_ERR PFX "Could not generate "
"tssi2dBm table\n"); "tssi2dBm table\n");
kfree(dyn_tssi2dbm);
return -ENODEV; return -ENODEV;
} }
phy->tssi2dbm = dyn_tssi2dbm; phy->tssi2dbm = dyn_tssi2dbm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment