Commit bc20589b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

applicom.c: fix apparently-broken code in do_ac_read()

The code scriblles over a local pointer whereas it appears to be trying
to write to the memory at which that pointer points.


Nobody we know can test this change.
Reported-by: default avatarZvonimir Rakamaric <>
Cc: Jesse Barnes <>
Cc: David Woodhouse <>
Cc: Jiri Slaby <>
Cc: Alan Cox <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent d05abab9
......@@ -478,7 +478,7 @@ static int do_ac_read(int IndexCard, char __user *buf,
struct st_ram_io *st_loc, struct mailbox *mailbox)
void __iomem *from = apbs[IndexCard].RamIO + RAM_TO_PC;
unsigned char *to = (unsigned char *)&mailbox;
unsigned char *to = (unsigned char *)mailbox;
#ifdef DEBUG
int c;
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