]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: fix error handling in checksum cmd callback
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 20 Dec 2017 17:07:18 +0000 (18:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 20:11:49 +0000 (15:11 -0500)
commitb9355a164edbf2f6012d5f3f6e42465db4e663f6
tree4d2dc91ffa39b5aa9d169c39a1af3446868b5a92
parent2694d1ed0d50089a970fd494e98f28c1ebbf2c0e
s390/qeth: fix error handling in checksum cmd callback

Make sure to check both return code fields before processing the
response. Otherwise we risk operating on invalid data.

Fixes: 08f772a1ffdd ("s390/qeth: rework RX/TX checksum offload")
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c