diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-01-31 03:16:46 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-08 14:51:31 -0500 |
commit | e9a4aa3ba386c8a368baaadde6f9e5c3d5f17cfe (patch) | |
tree | 5a92893b34d4d7ef1f1913c1113fbe5999b2e65b /drivers/net/wireless/rt2x00 | |
parent | c6d3b2046e310b361da93fe6c44bde5522c782da (diff) |
NFC: llcp: integer underflow in nfc_llcp_set_remote_gb()
If gb_len is less than 3 it would cause an integer underflow and
possibly memory corruption in nfc_llcp_parse_gb_tlv().
I removed the old test for gb_len == 0. I also removed the test for
->remote_gb == NULL. It's not possible for ->remote_gb to be NULL and
we have already dereferenced ->remote_gb_len so it's too late to test.
The old test return -ENODEV but my test returns -EINVAL.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
0 files changed, 0 insertions, 0 deletions