From: Amit Arora Date: Fri, 19 May 2006 23:14:50 +0000 (-0700) Subject: [SCSI] Return -EINVAL when "id == max_id" in scsi_scan_host_selected() X-Git-Tag: v2.6.18-rc1~1092^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=091686d3b5569d2ec76b9e6dab7f3608b6f64497;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed