[PATCH] [8/11] Use unlocked_fasync in random.c
From: Andi Kleen
Date: Tue May 20 2008 - 11:34:42 EST
Just uses fasync_helper which does its own locking
Cc: mpm@xxxxxxxxxxx
Signed-off-by: Andi Kleen <ak@xxxxxxxxxxxxxxx>
---
drivers/char/random.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux/drivers/char/random.c
===================================================================
--- linux.orig/drivers/char/random.c
+++ linux/drivers/char/random.c
@@ -1121,7 +1121,7 @@ const struct file_operations random_fops
.write = random_write,
.poll = random_poll,
.unlocked_ioctl = random_ioctl,
- .fasync = random_fasync,
+ .unlocked_fasync = random_fasync,
.release = random_release,
};
@@ -1129,7 +1129,7 @@ const struct file_operations urandom_fop
.read = urandom_read,
.write = random_write,
.unlocked_ioctl = random_ioctl,
- .fasync = random_fasync,
+ .unlocked_fasync = random_fasync,
.release = random_release,
};
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/