[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <37615320526925076@wsc.cz>
Date: Sat, 19 May 2007 11:51:55 +0200 (CEST)
From: Jiri Slaby <jirislaby@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: <linux-kernel@...r.kernel.org>
Subject: [PATCH 1/2] Misc: misc-phantom-move-to-unlocked_ioctl-fix
misc-phantom-move-to-unlocked_ioctl-fix
Signed-off-by: Jiri Slaby <jirislaby@...il.com>
---
commit fd826c7ffca5d1052a742d04f819c0251856cc6b
tree bad1cf29a70b1ff7171e1d2082967ab31f8383aa
parent d2f8feac3bd0ec0cd2d44a41fcbdb7568ac8629e
author Jiri Slaby <jirislaby@...il.com> Sat, 19 May 2007 11:20:26 +0200
committer Jiri Slaby <jirislaby@...il.com> Sat, 19 May 2007 11:20:26 +0200
drivers/misc/phantom.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/misc/phantom.c b/drivers/misc/phantom.c
index 6249767..4b5959b 100644
--- a/drivers/misc/phantom.c
+++ b/drivers/misc/phantom.c
@@ -125,9 +125,7 @@ static long phantom_ioctl(struct file *file, unsigned int cmd,
if (r.reg > 7)
return -EINVAL;
- spin_lock(&dev->ioctl_lock);
r.value = ioread32(dev->iaddr + r.reg);
- spin_unlock(&dev->ioctl_lock);
if (copy_to_user(argp, &r, sizeof(r)))
return -EFAULT;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists