Subject: [PATCH] bcm43xx: fix dyn tssi2dbm memleak

From: Michael Buesch <[email-masked]>
Date: Thu, 13 Apr 2006 02:27:49 +0200

This patch fixes a memory leak spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <[email-masked]>
Signed-off-by: Michael Buesch <[email-masked]>

Index: wireless-dev/drivers/net/wireless/bcm43xx/bcm43xx_phy.c
===================================================================
--- wireless-dev.orig/drivers/net/wireless/bcm43xx/bcm43xx_phy.c	2006-04-13 02:21:39.000000000 +0200
+++ wireless-dev/drivers/net/wireless/bcm43xx/bcm43xx_phy.c	2006-04-13 02:23:31.000000000 +0200
@@ -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;

-- 
Greetings Michael.