Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 11 Feb 2003 04:43:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 11 Feb 2003 04:43:12 -0500 Received: from hera.cwi.nl ([192.16.191.8]:24032 "EHLO hera.cwi.nl") by vger.kernel.org with ESMTP id ; Tue, 11 Feb 2003 04:43:11 -0500 From: Andries.Brouwer@cwi.nl Date: Tue, 11 Feb 2003 10:52:39 +0100 (MET) Message-Id: To: torvalds@transmeta.com Subject: [PATCH] genhd device unregistration fix Cc: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 713 Lines: 17 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/