brcmfmac: Fix memory leak and missing assignment.
authorHante Meuleman <meuleman@broadcom.com>
Thu, 11 Sep 2014 20:51:30 +0000 (22:51 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:09:25 +0000 (15:09 -0400)
commitfac7d2a3b8798f8b58004c74c4b37b9643b5897a
treead554049948e4bd472ee33c4372d83ec4436f2c3
parentae0fd6354134e63aa3e62456e2080c430287144d
brcmfmac: Fix memory leak and missing assignment.

The function brcmf_enable_bw40_2g contains a memory leak. The
function is also missing initialisation of one of the members of
ch struct, which can lead to warning but this has no impact on
result.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c