+ mousedev-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     mosuedev fix
has been added to the -mm tree.  Its filename is
     mousedev-fix.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: mosuedev fix
From: Dmitry Torokhov <dtor@xxxxxxxxxxxxx>

Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 drivers/input/mousedev.c |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff -puN drivers/input/mousedev.c~mousedev-fix drivers/input/mousedev.c
--- a/drivers/input/mousedev.c~mousedev-fix
+++ a/drivers/input/mousedev.c
@@ -406,12 +406,14 @@ static void mixdev_open_devices(void)
 	struct mousedev *mousedev;
 
 	list_for_each_entry(mousedev, &mousedev_mix_list, mixdev_node) {
-		if (mousedev->exist && !mousedev->open) {
-			if (input_open_device(&mousedev->handle))
-				continue;
+		if (mousedev->exist && !mousedev->mixdev_open) {
+			if (!mousedev->open) {
+				if (input_open_device(&mousedev->handle))
+					continue;
 
-			get_device(&mousedev->dev);
-			mousedev->open++;
+				get_device(&mousedev->dev);
+				mousedev->open++;
+			}
 			mousedev->mixdev_open++;
 		}
 	}
_

Patches currently in -mm which might be from dtor@xxxxxxxxxxxxx are

git-input.patch
input-convert-from-class-devices-to-standard-devices.patch
input-evdev-implement-proper-locking.patch
mousedev-fix.patch
input-rfkill-add-support-for-input-key-to-control-wireless-radio-fixes.patch
input-rfkill-add-support-for-input-key-to-control-wireless-radio-fixes-fix.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux