input: evdev: Add missing wake_lock_destroy
authorBenoit Goby <benoit@android.com>
Wed, 19 Jan 2011 22:10:37 +0000 (14:10 -0800)
committerColin Cross <ccross@android.com>
Tue, 14 Jun 2011 16:09:49 +0000 (09:09 -0700)
Change-Id: Ief1ef44d98a197e5b457f5e8617c413e76e3c6d2
Signed-off-by: Benoit Goby <benoit@android.com>
drivers/input/evdev.c

index 1848c9e563384df8be46417f5f88c8d5569fece6..54c7e1ec66910fcfc9e9e601ab9cdf46787397a7 100644 (file)
@@ -330,6 +330,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);