]> git.baikalelectronics.ru Git - kernel.git/commit
s390/3270: fix crash with multiple reset device requests
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 21 Mar 2014 14:24:27 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 1 Apr 2014 07:23:36 +0000 (09:23 +0200)
commit582a5280b5a3d9b3220de617ac0bb963571a1ff5
treebf9d6e30ce80c0cf8f82d70903dff29fbf328822
parent7df1366809af95adcc0c796ba6c98a9eff32f76f
s390/3270: fix crash with multiple reset device requests

If the 3270 device is detached the initial reset device request will
stays pending until the device is operational. A second reset device
call will reuse the same request structure which will cause an oops.
Add a check to see if the reset device request is already pending
and do nothing in this case.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/raw3270.c