From 82cff1ba8175f407288fe1d2081f7ca38086b28f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 25 Apr 2016 18:36:00 +0000 Subject: [PATCH] scst_vdisk: Fix a regression introduced by r6873 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6874 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 111d19882..eb8c4e8a8 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1759,7 +1759,7 @@ static int vdisk_open_fd(struct scst_vdisk_dev *virt_dev, bool read_only) int res; sBUG_ON(!virt_dev->filename); - sBUG_ON(!virt_dev->fd); + sBUG_ON(virt_dev->fd); virt_dev->fd = vdev_open_fd(virt_dev, virt_dev->filename, read_only); if (IS_ERR(virt_dev->fd)) {