Skip to content

Commit dac18fa

Browse files
Christoph Hellwigaxboe
authored andcommitted
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: Christoph Hellwig <[email protected]> Reviewed-by: Kanchan Joshi <[email protected]> Reviewed-by: Martin K. Petersen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent c096df9 commit dac18fa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

block/bio-integrity.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,11 @@ bool bio_integrity_prep(struct bio *bio)
465465
len = bio_integrity_bytes(bi, bio_sectors(bio));
466466
buf = kmalloc(len, gfp);
467467
if (unlikely(buf == NULL)) {
468-
printk(KERN_ERR "could not allocate integrity buffer\n");
469468
goto err_end_io;
470469
}
471470

472471
bip = bio_integrity_alloc(bio, GFP_NOIO, 1);
473472
if (IS_ERR(bip)) {
474-
printk(KERN_ERR "could not allocate data integrity bioset\n");
475473
kfree(buf);
476474
goto err_end_io;
477475
}

0 commit comments

Comments
 (0)