staging: rtl8723au: Calling rtw_get_stainfo() with a NULL sta_addr will return NULL
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:21:22 +0000 (23:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:23 +0000 (08:29 -0700)
commit7d0d2b15a0e06ce18c5fd69c4c9692f5670aa9d4
tree8b39e04be6b72cb59bdb98e59bbeac2c01fbefbc
parent514c485c01676927feb77c2a3e350bb3985fa11e
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 <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_recv.c