commit | 773fdcdc0957527577b2f1de994448894f1e3305 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Apr 22 13:47:23 2017 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jun 24 07:11:14 2017 +0200 |
tree | 5f42642f691b251d2b63e8651c9bf418128f0525 | |
parent | ed13a9c6464b49b654baeba96c833b1129dc4ce4 [diff] |
staging: rtl8188eu: prevent an underflow in rtw_check_beacon_data() commit 784047eb2d3405a35087af70cba46170c5576b25 upstream. The "len" could be as low as -14 so we should check for negatives. Fixes: 9a7fe54ddc3a ("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>