]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ap: fix error handling in __verify_queue_reservations()
authorTony Krowiak <akrowiak@linux.ibm.com>
Wed, 6 Jul 2022 21:43:29 +0000 (17:43 -0400)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Fri, 15 Jul 2022 05:07:36 +0000 (07:07 +0200)
commitd5fedf2d3857a1416299684d9de992030a8a25f2
treef5ea67577ac09a5c31fbe5ee7d3fa605de9cae83
parent1880212a70a2142a1d477065651e6ce783171b17
s390/ap: fix error handling in __verify_queue_reservations()

The AP bus's __verify_queue_reservations function increments the ref count
for the device driver passed in as a parameter, but fails to decrement it
before returning control to the caller. This will prevents any subsequent
removal of the module.

Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reported-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Fixes: b56ae2c3f72f ("s390/ap: driver callback to indicate resource in use")
Link: https://lore.kernel.org/r/20220706222619.602094-1-akrowiak@linux.ibm.com
Cc: stable@vger.kernel.org
[agordeev@linux.ibm.com fixed description, added Fixes and Link]
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
drivers/s390/crypto/ap_bus.c