]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: remove allocation failure warnings in bio_integrity_prep
authorChristoph Hellwig <hch@lst.de>
Wed, 26 Jun 2024 04:59:36 +0000 (06:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Jun 2024 16:29:41 +0000 (10:29 -0600)
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>
block/bio-integrity.c

index 259acb60c56a3a6ec94d8cff9ed0d67f0978de50..2da7fb222a3582f416cfe56dea365866fda94a32 100644 (file)
@@ -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;
        }