diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-03-10 09:51:39 +0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-03-18 15:50:19 +0400 |
commit | 15ac0778a65322c8c39eb2a6636218554d348690 (patch) | |
tree | 887519d14cca564add1a8fadfb55f414c6957eef /fs/lockd | |
parent | 99089ab756a26c8f1be5942178bf9b3fa9ae54d6 (diff) | |
download | linux-15ac0778a65322c8c39eb2a6636218554d348690.tar.xz |
ath6kl: remove false check from ath6kl_rx()
Dan found a check from ath6kl_rx() which doesn't make any sense at all:
" 1327 if (status || !(skb->data + HTC_HDR_LENGTH)) {
^^^^^^^^^^^^^^^^^^^^^^^^^^
skb->data is a pointer. This pointer math is always going to be false.
Should it be testing "packet->act_len < HTC_HDR_LENGTH" or something?"
I don't know what the check really was supposed to do, but I think Dan's guess
is right. Fix it accordingly.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'fs/lockd')
0 files changed, 0 insertions, 0 deletions