summaryrefslogtreecommitdiffstats
path: root/drivers/cdrom/sjcd.c
diff options
context:
space:
mode:
authorTony Breeds <tony@bakeyournoodle.com>2007-03-05 09:30:14 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-05 16:57:51 +0100
commit1ad7c311079412541bebaf1c8436d405cc8c6b2c (patch)
tree579185b75cf968de132d6a2b0cd6d4fd21ff9670 /drivers/cdrom/sjcd.c
parent[PATCH] parport is an orphan (diff)
downloadlinux-1ad7c311079412541bebaf1c8436d405cc8c6b2c.tar.xz
linux-1ad7c311079412541bebaf1c8436d405cc8c6b2c.zip
[PATCH] Fix soft lockup with iSeries viocd driver
Fix soft lockup with iSeries viocd driver, caused by eventually calling end_that_request_first() with nr_bytes 0. Some versions of hald do an SG_IO ioctl on the viocd device which becomes a request with hard_nr_sectors and hard_cur_sectors set to zero. Passing zero as the number of sectors to end_request() (which calls end_that_request_first()) causes an infinite loop when the bio is being freed. This patch makes sure that the zero is never passed. It only requires some number larger the the request size the terminate the loop. The lockup is triggered by hald, interrogating the device. Signed-off-by: Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/cdrom/sjcd.c')
0 files changed, 0 insertions, 0 deletions