OSDN Git Service

input: evdev: Add missing wake_lock_destroy
authorBenoit Goby <benoit@android.com>
Wed, 19 Jan 2011 22:10:37 +0000 (14:10 -0800)
committerBrian Swetland <swetland@google.com>
Tue, 29 Mar 2011 20:58:03 +0000 (13:58 -0700)
Change-Id: Ief1ef44d98a197e5b457f5e8617c413e76e3c6d2
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/input/evdev.c

index 2f60c80..cc7380e 100644 (file)
@@ -318,6 +318,7 @@ static int evdev_open(struct inode *inode, struct file *file)
 
  err_free_client:
        evdev_detach_client(evdev, client);
+       wake_lock_destroy(&client->wake_lock);
        kfree(client);
  err_put_evdev:
        put_device(&evdev->dev);