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
..
2005-04-16 15:20:36 -07:00
2006-03-25 08:22:52 -08:00
2006-03-24 07:33:24 -08:00
2006-01-01 22:21:50 +01:00
2006-04-11 06:18:46 -07:00
2006-01-14 10:55:12 -06:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-14 14:18:01 -06:00
2005-04-16 15:20:36 -07:00
2006-03-25 08:22:52 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:44:09 -05:00
2005-11-09 15:44:09 -05:00
2005-04-16 15:20:36 -07:00
2005-10-28 21:04:15 -05:00
2005-04-16 15:20:36 -07:00
2006-02-22 14:35:52 -08:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-04-13 10:13:29 -05:00
2006-04-13 10:13:30 -05:00
2006-05-20 09:36:38 -05:00
2006-05-20 09:35:20 -05:00
2006-03-14 14:18:01 -06:00
2005-04-16 15:20:36 -07:00
2006-04-14 15:47:45 -05:00
2005-04-16 15:20:36 -07:00
2006-02-27 22:55:08 -06:00
2006-01-12 09:09:05 -08:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-02-27 22:55:02 -06:00
2005-04-16 15:20:36 -07:00
2006-04-14 15:47:45 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-03-25 08:23:02 -08:00
2006-04-13 10:13:27 -05:00
2005-12-17 10:50:23 -06:00
2006-03-23 07:38:09 -08:00
2006-03-23 07:38:09 -08:00
2005-04-16 15:20:36 -07:00
2005-10-28 21:04:15 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00