]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - block/bio.c
RDMA/mlx5: Fix memory leak in mlx5_ib_create_srq() error path
[linux.git] / block / bio.c
index 9710e275f23079b8b7548ee935ab653036e82c5d..67eff5eddc49190fe8be721edd7031e8b6284a1e 100644 (file)
@@ -1807,9 +1807,6 @@ void bio_endio(struct bio *bio)
        if (!bio_integrity_endio(bio))
                return;
 
-       if (WARN_ONCE(bio->bi_next, "driver left bi_next not NULL"))
-               bio->bi_next = NULL;
-
        /*
         * Need to have a real endio function for chained bios, otherwise
         * various corner cases will break (like stacking block devices that