From: Matthew Wilcox Date: Fri, 5 Oct 2007 19:57:06 +0000 (-0400) Subject: [SCSI] advansys: Fix bug in AdvLoadMicrocode X-Git-Tag: v2.6.25-rc7~58^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=951b62c11e86acf8c55d9828aa8c921575023c29;p=pandora-kernel.git [SCSI] advansys: Fix bug in AdvLoadMicrocode buf[i] can be up to 0xfd, so doubling it and assigning the result to an unsigned char truncates the value. Just use an unsigned int instead; it's only a temporary. Signed-off-by: Matthew Wilcox Cc: Stable Tree Signed-off-by: James Bottomley --- Reading git-diff-tree failed