From: Jes Sorensen Date: Wed, 9 Apr 2014 21:21:22 +0000 (+0200) Subject: staging: rtl8723au: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~1561 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d0d2b15a0e06ce18c5fd69c4c9692f5670aa9d4;p=pandora-kernel.git staging: rtl8723au: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL This makes the follow-on check for psta != NULL pointless and makes the whole exercise rather pointless. This is another case of why blindly zero-initializing variables when they are declared is bad. This bug seems to be present in multiple drivers provided by Realtek. Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed