patch-2.1.4 linux/drivers/char/psaux.c
Next file: linux/drivers/char/pty.c
Previous file: linux/drivers/char/pcxx.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Oct 13 21:11:11 1996
- Orig file:
v2.1.3/linux/drivers/char/psaux.c
- Orig date:
Mon Sep 30 10:54:26 1996
diff -u --recursive --new-file v2.1.3/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -400,12 +400,14 @@
disable_bh(KEYBOARD_BH);
do {
+ char c;
if (!poll_aux_status())
break;
outb_p(AUX_MAGIC_WRITE,AUX_COMMAND);
if (!poll_aux_status())
break;
- outb_p(get_user(buffer++),AUX_OUTPUT_PORT);
+ get_user(c, buffer++);
+ outb_p(c, AUX_OUTPUT_PORT);
written++;
} while (--count);
/* reenable kbd bh */
@@ -432,9 +434,11 @@
int i = count;
while (i--) {
+ char c;
if (!poll_qp_status())
return -EIO;
- outb_p(get_user(buffer++), qp_data);
+ get_user(c, buffer++);
+ outb_p(c, qp_data);
}
inode->i_mtime = CURRENT_TIME;
return count;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov