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>
Wed, 16 Apr 2014 20:07:19 +0000 (13:07 -0700)
commitf764cd68d9036498f08fe8834deb6a367b5c2542
treebb1d77b9119cce9425c564dc2e0c4fb281373c4d
parent9452bf560273e4de2395ffdd79024debfb0c1290
staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0

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>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_recv.c