diff options
author | Christoph Hellwig <hch@lst.de> | 2024-06-26 06:59:36 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-06-28 10:29:41 -0600 |
commit | dac18fabba59149acec42621b9b603654e9459b2 (patch) | |
tree | 9b4ec4a6f0db74b376a1fa53b5eb54eae86acf25 /block | |
parent | c096df908393b0b3445f4335dd9bbd9d98252951 (diff) |
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 <hch@lst.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240626045950.189758-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r-- | block/bio-integrity.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/bio-integrity.c b/block/bio-integrity.c index 259acb60c56a..2da7fb222a35 100644 --- a/block/bio-integrity.c +++ b/block/bio-integrity.c @@ -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; } |