mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
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. Addresses http://bugzilla.kernel.org/show_bug.cgi?id=11397 Nobody we know can test this change. Reported-by: Zvonimir Rakamaric <[email protected]> Cc: Jesse Barnes <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
d05abab9a4
commit
bc20589bf1
1 file changed
+1
-1
@@ -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;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user