From ca08079b44dc4f49a47677126f03ff3ec51abb26 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 29 Dec 2010 20:14:00 +0000 Subject: [PATCH] A typo making expression the opposite fixed. Reported by Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3184 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 2ae1b0f46..f095817d2 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -1314,7 +1314,7 @@ static void vdisk_exec_unmap(struct scst_cmd *cmd, struct scst_vdisk_thr *thr) TRACE_ENTRY(); - if (unlikely(virt_dev->thin_provisioned)) { + if (unlikely(!virt_dev->thin_provisioned)) { TRACE_DBG("%s", "Invalid opcode UNMAP"); scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_invalid_opcode));