[PATCH] genhd device unregistration fix

From: Andries.Brouwer@cwi.nl
Date: Tue Feb 11 2003 - 04:52:39 EST


diff -u --recursive --new-file -X /linux/dontdiff a/drivers/block/genhd.c b/drivers/block/genhd.c
--- a/drivers/block/genhd.c Sat Jan 18 23:54:33 2003
+++ b/drivers/block/genhd.c Tue Feb 11 09:47:29 2003
@@ -74,7 +74,7 @@
         down_write(&block_subsys.rwsem);
         for (s = &probes[index]; *s; s = &(*s)->next) {
                 struct blk_probe *p = *s;
- if (p->dev == dev || p->range == range) {
+ if (p->dev == dev && p->range == range) {
                         *s = p->next;
                         kfree(p);
                         break;
-
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 : Sat Feb 15 2003 - 22:00:32 EST