patch-2.1.4 linux/drivers/char/apm_bios.c
Next file: linux/drivers/char/baycom.c
Previous file: linux/drivers/cdrom/sonycd535.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Sun Oct 13 21:11:10 1996
- Orig file:
v2.1.3/linux/drivers/char/apm_bios.c
- Orig date:
Mon Sep 30 10:31:28 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/char/apm_bios.c linux/drivers/char/apm_bios.c
@@ -847,7 +847,7 @@
i = count;
while ((i >= sizeof(event)) && !queue_empty(as)) {
event = get_queued_event(as);
- memcpy_tofs(buf, &event, sizeof(event));
+ copy_to_user(buf, &event, sizeof(event));
switch (event) {
case APM_SYS_SUSPEND:
case APM_USER_SUSPEND:
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov