aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorJan Höppner <[email protected]>2023-06-09 15:37:50 +0000
committerJens Axboe <[email protected]>2023-06-09 17:35:52 +0000
commitccc45cb4e7271c74dbb27776ae8f73d84557f5c6 (patch)
treec1589e0c5688f2736b64158c2d131087803b1fc6 /net/unix/af_unix.c
parentnull_blk: Fix: memory release when memory_backed=1 (diff)
downloadkernel-ccc45cb4e7271c74dbb27776ae8f73d84557f5c6.tar.gz
kernel-ccc45cb4e7271c74dbb27776ae8f73d84557f5c6.zip
s390/dasd: Use correct lock while counting channel queue length
The lock around counting the channel queue length in the BIODASDINFO ioctl was incorrectly changed to the dasd_block->queue_lock with commit 583d6535cb9d ("dasd: remove dead code"). This can lead to endless list iterations and a subsequent crash. The queue_lock is supposed to be used only for queue lists belonging to dasd_block. For dasd_device related queue lists the ccwdev lock must be used. Fix the mentioned issues by correctly using the ccwdev lock instead of the queue lock. Fixes: 583d6535cb9d ("dasd: remove dead code") Cc: [email protected] # v5.0+ Signed-off-by: Jan Höppner <[email protected]> Reviewed-by: Stefan Haberland <[email protected]> Signed-off-by: Stefan Haberland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions