forked from Minki/linux
[PATCH] memcpy_fromio() missing in istallion
memcpy() from iomem is a bad thing... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
cc9bd99e9a
commit
634965f5cf
@ -3488,7 +3488,7 @@ static int stli_initecp(stlibrd_t *brdp)
|
||||
*/
|
||||
EBRDENABLE(brdp);
|
||||
sigsp = (cdkecpsig_t __iomem *) EBRDGETMEMPTR(brdp, CDK_SIGADDR);
|
||||
memcpy(&sig, sigsp, sizeof(cdkecpsig_t));
|
||||
memcpy_fromio(&sig, sigsp, sizeof(cdkecpsig_t));
|
||||
EBRDDISABLE(brdp);
|
||||
|
||||
if (sig.magic != cpu_to_le32(ECP_MAGIC))
|
||||
|
Loading…
Reference in New Issue
Block a user