projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc9bd99
)
[PATCH] memcpy_fromio() missing in istallion
author
Al Viro
<viro@ftp.linux.org.uk>
Sat, 23 Sep 2006 00:20:31 +0000
(
01:20
+0100)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sat, 23 Sep 2006 00:48:56 +0000
(17:48 -0700)
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>
drivers/char/istallion.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/istallion.c
b/drivers/char/istallion.c
index 84dfc4278139eaf809b666d47bd7de8623aa9898..8c09997cc3d63b9108c7c4f948a9eb611a580bff 100644
(file)
--- 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))