commit | 92d4c21e51fc12736c39c2a161a42f20e2be8a00 | [log] [tgz] |
---|---|---|
author | Olivier Deprez <olivier.deprez@arm.com> | Tue Dec 06 15:05:30 2022 +0100 |
committer | Olivier Deprez <olivier.deprez@arm.com> | Tue Dec 06 15:05:30 2022 +0100 |
tree | 0ea63b023a85dff7aeb0895b46d3b22a65669ae1 | |
parent | 157378f43faad830e4aa3815bde5fa9f9a9f5be6 [diff] [blame] |
Update Linux to v5.10.157 Sourced from [1] [1] https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.10.157.tar.xz Signed-off-by: Olivier Deprez <olivier.deprez@arm.com> Change-Id: I7b30d9e98d8c465d6b44de8e7433b4a40b3289ba
diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index 2143263..9789526 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c
@@ -1109,6 +1109,12 @@ * which would call closure_get(&dc->disk.cl) */ ddip = kzalloc(sizeof(struct detached_dev_io_private), GFP_NOIO); + if (!ddip) { + bio->bi_status = BLK_STS_RESOURCE; + bio->bi_end_io(bio); + return; + } + ddip->d = d; /* Count on the bcache device */ ddip->start_time = part_start_io_acct(d->disk, &ddip->part, bio);