]> git.baikalelectronics.ru Git - kernel.git/commit
pktcdvd: check for NULL returna fter calling bio_split_to_limits()
authorJens Axboe <axboe@kernel.dk>
Mon, 16 Jan 2023 15:51:05 +0000 (08:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:37 +0000 (07:24 +0100)
commita599710ee8283175c61d0bc0383a20d22d985091
treedb046d1f306bd3b9250f167ef89c42f985771d2d
parentf382547a1229147175140e6a1c33167f8167ba8e
pktcdvd: check for NULL returna fter calling bio_split_to_limits()

commit 3e9900f3bd7ba30d60f82b162b70a1dffe4e8e24 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: 9cea62b2cbab ("block: don't allow splitting of a REQ_NOWAIT bio")
Fixes: 4b83e99ee709 ("Revert "pktcdvd: remove driver."")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/pktcdvd.c