From: Jes Sorensen Date: Tue, 15 Apr 2014 17:43:20 +0000 (+0200) Subject: staging: rtl8723au: Fix buffer overflow in rtw_get_wfd_ie() X-Git-Tag: omap-for-v3.16/pm-signed~80^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d197b614d8fbc5c25307e7eff1d663653966fa;p=pandora-kernel.git staging: rtl8723au: Fix buffer overflow in rtw_get_wfd_ie() Add bounds checking to not allow WFD Information Elements larger than 128, and make sure we use the correct buffer size MAX_WFD_IE_LEN instea of hardcoding the size. This also simplifies rtw_get_wfd_ie() by using the cfg80211 infrastructure. Reported-by: Dan Carpenter Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed