Commit dac18fab authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: remove allocation failure warnings in bio_integrity_prep

Allocation failures already leave a stack trace, so don't spew another
warning.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240626045950.189758-4-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent c096df90
......@@ -465,13 +465,11 @@ bool bio_integrity_prep(struct bio *bio)
len = bio_integrity_bytes(bi, bio_sectors(bio));
buf = kmalloc(len, gfp);
if (unlikely(buf == NULL)) {
printk(KERN_ERR "could not allocate integrity buffer\n");
goto err_end_io;
}
bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
if (IS_ERR(bip)) {
printk(KERN_ERR "could not allocate data integrity bioset\n");
kfree(buf);
goto err_end_io;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment