Skip to content

Commit 3e9900f

Browse files
committed
pktcdvd: check for NULL returna fter calling bio_split_to_limits()
The revert of the removal of this driver happened after we fixed up the split limits for NOWAIT issue, hence it got missed. Ensure that we check for a NULL bio after splitting, in case it should be retried. Marking this as fixing both commits, so that stable backport will do this correctly. Cc: [email protected] Fixes: 9cea62b ("block: don't allow splitting of a REQ_NOWAIT bio") Fixes: 4b83e99 ("Revert "pktcdvd: remove driver."") Signed-off-by: Jens Axboe <[email protected]>
1 parent 216f764 commit 3e9900f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/block/pktcdvd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,6 +2400,8 @@ static void pkt_submit_bio(struct bio *bio)
24002400
struct bio *split;
24012401

24022402
bio = bio_split_to_limits(bio);
2403+
if (!bio)
2404+
return;
24032405

24042406
pkt_dbg(2, pd, "start = %6llx stop = %6llx\n",
24052407
(unsigned long long)bio->bi_iter.bi_sector,

0 commit comments

Comments
 (0)