staging: r8712u: Fix case where ethtype was never obtained and always be checked...
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 16 Apr 2014 19:49:33 +0000 (14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:26 +0000 (07:59 -0700)
commit7acdbd97cf944c41e0fa5a1b891e7bf5358449b2
treef53e6c1bec581a0513fc3e1d2457553fbbf0d116
parentfac3a5f8441b219038adcd79e773e4412e9f36dc
staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0

commit f764cd68d9036498f08fe8834deb6a367b5c2542 upstream.

Zero-initializing ether_type masked that the ether type would never be
obtained for 8021x packets and the comparison against eapol_type
would always fail.

Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_recv.c