From: Jody Belka Subject: [patch 1/5] xen: blkfront vbd bugfix Date: Mon, 31 Jan 2005 23:32:51 +0100 Message-ID: <20050131223251.GF2144@faith.gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Fix incorrect result-check in xlvbd_init_device Signed-off-by: Jody Belka diffstat: vbd.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -durN xen.orig/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c xen/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c --- xen.orig/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c 2005-01-30 00:46:28.000000000 +0100 +++ xen/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c 2005-01-31 17:55:19.140189608 +0100 @@ -317,7 +317,7 @@ down(&bd->bd_sem); gd = xlvbd_get_gendisk(mi, minor, xd); - if (mi == NULL) { + if (gd == NULL) { err = -EPERM; goto out; } ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl