Re: [Patch] Latest device-mapper snapshot

From: Joe Thornber (joe@fib011235813.fsnet.co.uk)
Date: Fri Oct 25 2002 - 04:52:11 EST


Doh !

# [Device-mapper]
# Forgot a bio_put()
# --------------------------------------------
#
diff -Nru a/drivers/md/dm.c b/drivers/md/dm.c
--- a/drivers/md/dm.c Fri Oct 25 10:47:49 2002
+++ b/drivers/md/dm.c Fri Oct 25 10:47:49 2002
@@ -270,8 +270,10 @@
          * finished. If a partial io errors I'm assuming it won't
          * be requeued. FIXME: check this.
          */
- if (error || !bio->bi_size)
+ if (error || !bio->bi_size) {
                 dec_pending(io, error);
+ bio_put(bio);
+ }
 
         return 0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:27 EST