lkml.org 
[lkml]   [2004]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 3/47] Fix an oops in poll() on uinput.
Date
From
You can pull this changeset from:
bk://kernel.bkbits.net/vojtech/input

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

ChangeSet@1.1612.1.22, 2004-05-28 22:57:43+02:00, vojtech@suse.cz
input: Fix an oops in poll() on uinput. Thanks to Dmitry Torokhov
for suggesting the fix.


uinput.c | 3 +++
1 files changed, 3 insertions(+)

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

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:19 2004
+++ b/drivers/input/misc/uinput.c Thu Jul 29 14:42:19 2004
@@ -279,6 +279,9 @@
{
struct uinput_device *udev = file->private_data;

+ if (!test_bit(UIST_CREATED, &(udev->state)))
+ return -ENODEV;
+
poll_wait(file, &udev->waitq, wait);

if (udev->head != udev->tail)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.056 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site