diff options
| author | [email protected] <[email protected]> | 2013-03-29 05:27:36 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-03-29 19:43:08 +0000 |
| commit | 14bc435ea54cb888409efb54fc6b76c13ef530e9 (patch) | |
| tree | 02acc6677f57f6be6a82b4ac794298bc415d3bda /net/unix/af_unix.c | |
| parent | net: add a synchronize_net() in netdev_rx_handler_unregister() (diff) | |
| download | kernel-14bc435ea54cb888409efb54fc6b76c13ef530e9.tar.gz kernel-14bc435ea54cb888409efb54fc6b76c13ef530e9.zip | |
ks8851: Fix interpretation of rxlen field.
According to the Datasheet (page 52):
15-12 Reserved
11-0 RXBC Receive Byte Count
This field indicates the present received frame byte size.
The code has a bug:
rxh = ks8851_rdreg32(ks, KS_RXFHSR);
rxstat = rxh & 0xffff;
rxlen = rxh >> 16; // BUG!!! 0xFFF mask should be applied
Signed-off-by: Max Nekludov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
