[PATCH 5/47] Return 0 from uinput poll if device isn't yet created.

From: Vojtech Pavlik
Date: Thu Jul 29 2004 - 13:28:31 EST


You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input

===================================================================

ChangeSet@xxxxxxxxxxx, 2004-05-31 12:27:40+02:00, vojtech@xxxxxxx
input: Return 0 from uinput poll if device isn't yet created.

Signed-off-by: Vojtech Pavlik <vojtech@xxxxxxx>


uinput.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

===================================================================

diff -Nru a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c
--- a/drivers/input/misc/uinput.c Thu Jul 29 14:42:09 2004
+++ b/drivers/input/misc/uinput.c Thu Jul 29 14:42:09 2004
@@ -280,7 +280,7 @@
struct uinput_device *udev = file->private_data;

if (!test_bit(UIST_CREATED, &(udev->state)))
- return -ENODEV;
+ return 0;

poll_wait(file, &udev->waitq, wait);


-
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/