diff options
author | 2007-10-05 15:57:06 -0400 | |
---|---|---|
committer | 2008-03-07 10:05:43 -0600 | |
commit | 951b62c11e86acf8c55d9828aa8c921575023c29 (patch) | |
tree | f9caeba567b96d05d22af36a4076bcf81133c897 /lib/bitmap.c | |
parent | Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6.25 (diff) | |
download | linux-dev-951b62c11e86acf8c55d9828aa8c921575023c29.tar.xz linux-dev-951b62c11e86acf8c55d9828aa8c921575023c29.zip |
[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 <willy@linux.intel.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions