misc: ti-st: fix memory leak and wakelock handle
authorRakesh Goyal <rgoyal@nvidia.com>
Thu, 28 Feb 2013 14:13:03 +0000 (19:13 +0530)
committerMandar Padmawar <mpadmawar@nvidia.com>
Tue, 5 Mar 2013 10:04:18 +0000 (02:04 -0800)
commit8e3e11d0b041b48b96e0178f55f2e1702dd5bbf0
tree69b4c31beabb717cf4eb949890dab1556d6a4e1e
parentbb6d3fbaeaafd2885933241911f2b8748030dd72
misc: ti-st: fix memory leak and wakelock handle

1) Release memory in error case
2) release wake lock in error case

Bug 1179655

Change-Id: Ie4ae6fccd31f664aae92101df4e21653c4c10eef
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: http://git-master/r/205138
Reviewed-by: Rakesh Kumar <krakesh@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/misc/ti-st/st_kim.c