]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: lock the card while changing its hsuid
authorJulian Wiedmann <jwi@linux.ibm.com>
Mon, 23 Dec 2019 14:03:22 +0000 (15:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Dec 2019 06:41:06 +0000 (22:41 -0800)
commita763c732429e51be069a60a2852bb7dc6d804413
tree3440a4437bf66e84c21bed330d54f2ed7bbce104
parent489ce21a7a116a720eb66fc127d141f35c86cd43
s390/qeth: lock the card while changing its hsuid

qeth_l3_dev_hsuid_store() initially checks the card state, but doesn't
take the conf_mutex to ensure that the card stays in this state while
being reconfigured.

Rework the code to take this lock, and drop a redundant state check in a
helper function.

Fixes: 27a8eccc0d1c ("qeth: add support for af_iucv HiperSockets transport")
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l3_sys.c