[SCSI] aacraid: correct valid container response in management ioctl
authorSalyzyn, Mark <mark_salyzyn@adaptec.com>
Tue, 17 Jul 2007 14:59:19 +0000 (10:59 -0400)
committerJames Bottomley <jejb@mulgrave.localdomain>
Wed, 18 Jul 2007 16:17:33 +0000 (11:17 -0500)
During an Adapter Initiated scan request, the query disk ioctl reports a
value of 2 rather than 1 for the valid field. This presents a problem
for some legacy management applications.

Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aacraid/aachba.c

index 0b6fd0b654d26cedca1ae9fdfb497b9c2fa3f3a2..80d42070edf00ef051be56d806a66debb353c28c 100644 (file)
@@ -2070,7 +2070,7 @@ static int query_disk(struct aac_dev *dev, void __user *arg)
        }
        else return -EINVAL;
 
-       qd.valid = fsa_dev_ptr[qd.cnum].valid;
+       qd.valid = fsa_dev_ptr[qd.cnum].valid != 0;
        qd.locked = fsa_dev_ptr[qd.cnum].locked;
        qd.deleted = fsa_dev_ptr[qd.cnum].deleted;