mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-25 11:55:37 +00:00
pktcdvd: check for NULL returna fter calling bio_split_to_limits()
commit3e9900f3bd
upstream. 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: stable@vger.kernel.org Fixes:9cea62b2cb
("block: don't allow splitting of a REQ_NOWAIT bio") Fixes:4b83e99ee7
("Revert "pktcdvd: remove driver."") Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
64152e05a4
commit
66144d830f
1 changed files with 2 additions and 0 deletions
|
@ -2400,6 +2400,8 @@ static void pkt_submit_bio(struct bio *bio)
|
|||
struct bio *split;
|
||||
|
||||
bio = bio_split_to_limits(bio);
|
||||
if (!bio)
|
||||
return;
|
||||
|
||||
pkt_dbg(2, pd, "start = %6llx stop = %6llx\n",
|
||||
(unsigned long long)bio->bi_iter.bi_sector,
|
||||
|
|
Loading…
Reference in a new issue