[SCSI] aacraid: correct valid container response in management ioctl

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>
This commit is contained in:
Salyzyn, Mark 2007-07-17 10:59:19 -04:00 коммит произвёл James Bottomley
Родитель ef1d8df72f
Коммит fd622b1b4e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;