diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2020-01-23 01:07:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-23 23:24:37 +0300 |
commit | 94b166349503957079ef5e7d6f667f157aea014a (patch) | |
tree | 57042dbddb242b3984f508de0e23d42e8a57e3e2 /drivers/bluetooth | |
parent | eaabfd19b2c787bbe88dc32424b9a43d67293422 (diff) | |
download | linux-94b166349503957079ef5e7d6f667f157aea014a.tar.xz |
net/sonic: Improve receive descriptor status flag check
After sonic_tx_timeout() calls sonic_init(), it can happen that
sonic_rx() will subsequently encounter a receive descriptor with no
flags set. Remove the comment that says that this can't happen.
When giving a receive descriptor to the SONIC, clear the descriptor
status field. That way, any rx descriptor with flags set can only be
a newly received packet.
Don't process a descriptor without the LPKT bit set. The buffer is
still in use by the SONIC.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/bluetooth')
0 files changed, 0 insertions, 0 deletions