Commit 17675db1 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] wd7000 iomem annotations and fixes

direct dereferencing of iomem pointer (by memcmp())
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e3e092b7
...@@ -1429,16 +1429,16 @@ static int wd7000_detect(struct scsi_host_template *tpnt) ...@@ -1429,16 +1429,16 @@ static int wd7000_detect(struct scsi_host_template *tpnt)
break; break;
if (i == pass) { if (i == pass) {
void *biosaddr = ioremap(wd7000_biosaddr[biosaddr_ptr] + signatures[sig_ptr].ofs, void __iomem *biosaddr = ioremap(wd7000_biosaddr[biosaddr_ptr] + signatures[sig_ptr].ofs,
signatures[sig_ptr].len); signatures[sig_ptr].len);
short bios_match = 0; short bios_match = 1;
if (biosaddr) if (biosaddr)
bios_match = memcmp((char *) biosaddr, signatures[sig_ptr].sig, signatures[sig_ptr].len); bios_match = check_signature(biosaddr, signatures[sig_ptr].sig, signatures[sig_ptr].len);
iounmap(biosaddr); iounmap(biosaddr);
if (!bios_match) if (bios_match)
goto bios_matched; goto bios_matched;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment