From: Martin K. Petersen Date: Thu, 27 Sep 2012 02:39:44 +0000 (-0400) Subject: [SCSI] Fix range check in scsi_host_dif_capable() X-Git-Tag: v3.9-rc1~21^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d24834dfd25f2dab5977241cd5a6662edde92f7;p=pandora-kernel.git [SCSI] Fix range check in scsi_host_dif_capable() The range checking from fe542396 was bad. We would still end up walking beyond the array as Type 3 is defined to be 4 in the protection bitmask. Instead use ARRAY_SIZE() for the range check. Reported-by: Dan Carpenter Signed-off-by: Martin K. Petersen Signed-off-by: James Bottomley --- Reading git-diff-tree failed