patch-2.1.117 linux/drivers/char/psaux.c

Next file: linux/drivers/char/radio-aimslab.c
Previous file: linux/drivers/char/pc110pad.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.116/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -105,11 +105,11 @@
 	return queue->head == queue->tail;
 }
 
-static int fasync_aux(struct file *filp, int on)
+static int fasync_aux(int fd, struct file *filp, int on)
 {
 	int retval;
 
-	retval = fasync_helper(filp, on, &queue->fasync);
+	retval = fasync_helper(fd, filp, on, &queue->fasync);
 	if (retval < 0)
 		return retval;
 	return 0;
@@ -242,7 +242,7 @@
 
 static int release_aux(struct inode * inode, struct file * file)
 {
-	fasync_aux(file, 0);
+	fasync_aux(-1, file, 0);
 	if (--aux_count)
 		return 0;
 	aux_start_atomic();
@@ -390,7 +390,7 @@
 {
 	unsigned char status;
 
-	fasync_aux(file, 0);
+	fasync_aux(-1, file, 0);
 	if (!--qp_count) {
 		if (!poll_qp_status())
 			printk("Warning: Mouse device busy in release_qp()\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov