staging: wlan-ng: Release struct returned by cfg80211_inform_bss to avoid potential...
authorKrzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Tue, 24 Apr 2012 14:00:34 +0000 (15:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:28:25 +0000 (11:28 -0700)
commit19f798ad009a1c9aebe6c248173e4a7ec694c680
treede47eddffc271682ae49c16c26fbfffd999143c9
parent89f5e7102a56bcd1b5b0691085d0839e92b3ca04
staging: wlan-ng: Release struct returned by cfg80211_inform_bss to avoid potential memory leak.

Function cfg80211_inform_bss returns a pointer to a referenced struct cfg80211_bss
but no information is needed from this struct in function prism2_scan and therefore
we release it by calling cfg80211_put_bss.

Signed-off-by: Krzysztof Wilczynski <krzysztof.wilczynski@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/cfg80211.c