s390/qeth: fix SETIP command handling
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Fri, 9 Feb 2018 10:03:50 +0000 (11:03 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:13 +0000 (00:30 +0100)
commit7aa2c8a3d19e27d8913b66e4f0e09ee86d56095e
treed77c020f63fadc5f7ef837caab408079d0900340
parent498f0cc811a3fb51e374c8a2d1fe18dd352d1495
s390/qeth: fix SETIP command handling

commit 1c5b2216fbb973a9410e0b06389740b5c1289171 upstream.

send_control_data() applies some special handling to SETIP v4 IPA
commands. But current code parses *all* command types for the SETIP
command code. Limit the command code check to IPA commands.

Fixes: 5b54e16f1a54 ("qeth: do not spin for SETIP ip assist command")
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c