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/fixes-against-rc1~39^2~36^2~1529 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=597baaff65b68d58ee035d556ddd6e2387c63c6d;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