Skip to content

Commit

Permalink
[SCSI] aacraid: correct valid container response in management ioctl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Salyzyn, Mark authored and James Bottomley committed Jul 18, 2007
1 parent ef1d8df commit fd622b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/aacraid/aachba.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fd622b1

Please sign in to comment.