mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-21 05:14:52 +08:00
s390/qeth: fix off-by-one in RX copybreak check
The RX copybreak is intended as the _max_ value where the frame's data
should be copied. So for frame_len == copybreak, don't build an SG skb.
Fixes: 4a71df5004
("qeth: new qeth device driver")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
420579dba1
commit
54a61fbc02
@ -5344,7 +5344,7 @@ next_packet:
|
||||
}
|
||||
|
||||
use_rx_sg = (card->options.cq == QETH_CQ_ENABLED) ||
|
||||
((skb_len >= card->options.rx_sg_cb) &&
|
||||
(skb_len > card->options.rx_sg_cb &&
|
||||
!atomic_read(&card->force_alloc_skb) &&
|
||||
!IS_OSN(card));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user