]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/qeth: fix off-by-one in RX copybreak check
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 20 Feb 2020 14:54:56 +0000 (15:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:45:19 +0000 (16:45 +0100)
commit227fb1306d0638a7bf1e9a97f033b07cc52def57
tree3308f97d34efbf08f037c7a89fe1613bd719928a
parente912bd31c1dfcb13addf29ba44ebc13dba70dc18
s390/qeth: fix off-by-one in RX copybreak check

commit 54a61fbc020fd2e305680871c453abcf7fc0339b upstream.

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: 4a71df50047f ("qeth: new qeth device driver")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/net/qeth_core_main.c