linux-stable/drivers/s390
Tony Krowiak ceb7a7e7ab s390/ap: fix error handling in __verify_queue_reservations()
commit 2f23256c0e upstream.

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: 4f8206b882 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-22 10:21:57 +02:00
..
block s390/dasd: Use kzalloc instead of kmalloc/memset 2022-05-05 20:08:27 -06:00
char s390: cleanup timer API use 2022-03-27 22:18:39 +02:00
cio s390/stp: clock_delta should be signed 2022-06-09 10:30:45 +02:00
crypto s390/ap: fix error handling in __verify_queue_reservations() 2022-07-22 10:21:57 +02:00
net s390/lcs: fix variable dereferenced before check 2022-05-11 12:31:01 +01:00
scsi scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-01-24 23:30:27 -05:00
virtio virtio/s390: get rid of open-coded kvm hypercall 2021-06-28 11:18:28 +02:00
Makefile