Amit Arora 091686d3b5 [SCSI] Return -EINVAL when "id == max_id" in scsi_scan_host_selected()
The scsi_scan_host_selected() should return -EINVAL when the id is equal
to the max_id. Currently it uses ">" when comparing with max_id, and
hence leaves the border case when "id==max_id".
The channel and lun have values valid from 0 up to,
and including, max_channel or max_lun. But, the valid values for id
range from 0 to max_id-1. This patch fixes the problem.

Signed-off-by: Amit Arora <aarora@in.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-05-28 13:01:23 -04:00
..
2006-04-11 06:18:46 -07:00
2006-04-11 06:18:47 -07:00
2006-04-11 06:18:45 -07:00
2006-03-27 08:44:51 -08:00
2006-04-11 06:18:40 -07:00
2006-03-29 13:24:50 +11:00
2006-04-11 06:18:43 -07:00
2006-04-11 06:18:47 -07:00
2006-05-28 12:50:45 -04:00
2006-04-11 06:18:44 -07:00
2006-03-23 07:38:16 -08:00
2006-03-24 18:23:14 +01:00
2006-03-31 12:18:56 -08:00