diff options
author | Jens Axboe | 2023-01-04 08:51:19 -0700 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-01-18 11:58:33 +0100 |
commit | 73a630b359c852d6edc113588c513ddbcd3be47a (patch) | |
tree | 8a98324852006f73365c408598c1ee337b88a534 /drivers/s390 | |
parent | e62e6258ab140b55bbef1f0d288263b75e2f0c20 (diff) |
block: handle bio_split_to_limits() NULL return
commit 613b14884b8595e20b9fac4126bf627313827fbe upstream.
This can't happen right now, but in preparation for allowing
bio_split_to_limits() returning NULL if it ended the bio, check for it
in all the callers.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/block/dcssblk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c index b392b9f5482e..c0f85ffb2b62 100644 --- a/drivers/s390/block/dcssblk.c +++ b/drivers/s390/block/dcssblk.c @@ -865,6 +865,8 @@ dcssblk_submit_bio(struct bio *bio) unsigned long bytes_done; bio = bio_split_to_limits(bio); + if (!bio) + return; bytes_done = 0; dev_info = bio->bi_bdev->bd_disk->private_data; |