[PATCH] genhd device unregistration fix

Andries.Brouwer@cwi.nl
Tue, 11 Feb 2003 10:52:39 +0100 (MET)


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/