]> err.no Git - linux-2.6/commitdiff
[PATCH] bcm43xx: fix dyn tssi2dbm memleak
authorAdrian Bunk <bunk@stusta.de>
Thu, 13 Apr 2006 00:27:49 +0000 (02:27 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Apr 2006 21:25:40 +0000 (17:25 -0400)
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>
drivers/net/wireless/bcm43xx/bcm43xx_phy.c

index 0a66f43ca0c01a1089fccaa3b66bf1bb28661c0e..33137165727f7c69c054a9507324beda7fcd2830 100644 (file)
@@ -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;