s390/qdio: make qdio_handle_aobs() more robust
authorJulian Wiedmann <jwi@linux.ibm.com>
Thu, 6 Feb 2020 16:52:03 +0000 (17:52 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 14 Sep 2020 08:30:07 +0000 (10:30 +0200)
commit309f98dbc66cb183a84781e2b19595f044a2d6e4
tree17ce43c33e3083b27adf455ec78cc6b953bdd925
parent4bf3ec384edf0bf893ec7bd62ccebb635b02efd9
s390/qdio: make qdio_handle_aobs() more robust

When processing a PENDING buffer with no attached aob, the current code
would get stuck on this buffer (as the 'continue' causes us to not
advance the buffer index) and process it repeatedly until the loop
terminates eventually.

Luckily this should never happen - the HW must not use the PENDING state
when no aob was provided. But we can still make this code path less
fragile and protect against buggy devices.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/qdio_main.c