From: Al Viro Date: Sat, 23 Sep 2006 00:20:31 +0000 (+0100) Subject: [PATCH] memcpy_fromio() missing in istallion X-Git-Tag: v2.6.19-rc1~1290 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=634965f5cfda1763f51e7916cfa49265b70e2a8d;p=linux-2.6-omap-h63xx.git [PATCH] memcpy_fromio() missing in istallion memcpy() from iomem is a bad thing... Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index 84dfc427813..8c09997cc3d 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c @@ -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))