staging: rtl8188eu: prevent an underflow in rtw_check_beacon_data()

commit 784047eb2d upstream.

The "len" could be as low as -14 so we should check for negatives.

Fixes: 9a7fe54ddc ("staging: r8188eu: Add source files for new driver - part 1")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dan Carpenter 2017-04-22 13:47:23 +03:00 • committed by Greg Kroah-Hartman
commit 773fdcdc09