staging: brcm80211: Fix memory leak after kmalloc failure
authorStefan Weil <weil@mail.berlios.de>
Thu, 24 Feb 2011 21:11:48 +0000 (22:11 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 1 Mar 2011 02:07:19 +0000 (18:07 -0800)
commit2d586ea6de0ffe3e119ed0f1d4cb0adeb6874cbc
treea552e63e50840fda2b0d32e6ff3e4abbaa80a53f
parent8d9e9d09b78bd131f488bbd2746852a05bcf557f
staging: brcm80211: Fix memory leak after kmalloc failure

This error was spotted by cppcheck:

drivers/staging/brcm80211/phy/wlc_phy_lcn.c:4053: error: Memory leak: ptr

Cc: Brett Rudley <brudley@broadcom.com>
Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: linux-wireless@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/brcmsmac/phy/wlc_phy_lcn.c