]> 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)
commit5ccdb083f7a31dd2eee6a89ab05321216d49e038
tree4d2dc91ffa39b5aa9d169c39a1af3446868b5a92
parentef6376c98db1d4d53e0c0e0eb5dc15c957bb7ac1
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: e56b4ba37f96 ("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