staging: r8188eu: Fix case where ethtype was never obtained and always be checked...
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 16 Apr 2014 19:49:34 +0000 (14:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 20:07:19 +0000 (13:07 -0700)
commit33c84bc14c25074ac14644cf7db75a57e9abaf1a
tree55b754e16339785663f1e9955a9410ed4994bd2f
parentf764cd68d9036498f08fe8834deb6a367b5c2542
staging: r8188eu: 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/rtl8188eu/core/rtw_recv.c