From: Mark Knibbs Date: Thu, 9 Oct 2014 11:39:48 +0000 (+0100) Subject: scsi: fix off-by-one LUN check in scsi_scan_host_selected() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2~1^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=605c6dbef7556604b20b9831ea790dfe988416d8;p=pandora-kernel.git scsi: fix off-by-one LUN check in scsi_scan_host_selected() The Scsi_Host structure max_lun field is the maximum allowed LUN plus 1. So a LUN value is invalid if >= max_lun. Signed-off-by: Mark Knibbs Reviewed-by: Martin K. Petersen Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed