Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <zrakamar@cs.ubc.ca>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andrew Morton and committed by
Linus Torvalds
bc20589b d05abab9

+1 -1
+1 -1
drivers/char/applicom.c
··· 478 478 struct st_ram_io *st_loc, struct mailbox *mailbox) 479 479 { 480 480 void __iomem *from = apbs[IndexCard].RamIO + RAM_TO_PC; 481 - unsigned char *to = (unsigned char *)&mailbox; 481 + unsigned char *to = (unsigned char *)mailbox; 482 482 #ifdef DEBUG 483 483 int c; 484 484 #endif