Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: blocking mempool_alloc doesn't fail

So remove the error check for it in bio_integrity_prep.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
eef09f74 3f5b1169

-4
-4
block/bio-integrity-auto.c
··· 158 158 if (!buf) 159 159 goto err_end_io; 160 160 bid = mempool_alloc(&bid_pool, GFP_NOIO); 161 - if (!bid) 162 - goto err_free_buf; 163 161 bio_integrity_init(bio, &bid->bip, &bid->bvec, 1); 164 162 165 163 bid->bio = bio; ··· 185 187 bid->saved_bio_iter = bio->bi_iter; 186 188 return true; 187 189 188 - err_free_buf: 189 - kfree(buf); 190 190 err_end_io: 191 191 bio->bi_status = BLK_STS_RESOURCE; 192 192 bio_endio(bio);