s390/qeth: fix error handling in adapter command callbacks
[ Upstream commit 686c97ee29c886ee07d17987d0059874c5c3b5af ]
Make sure to check both return code fields before(!) processing the
command response. Otherwise we risk operating on invalid data.
This matches an earlier fix for SETASSPARMS commands, see
commit ad3cbf613329 ("s390/qeth: fix error handling in checksum cmd callback").
Signed-off-by:
Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by:
David S. Miller <davem@davemloft.net>
Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please register or sign in to comment