commit | 6cf5c0d24803851272b613a5d6995194df0c770a | [log] [tgz] |
---|---|---|
author | Shantanu Jain <shjain@codeaurora.org> | Wed Nov 20 16:46:49 2013 +0530 |
committer | Abinaya P <abinayap@codeaurora.org> | Wed Nov 27 16:15:33 2013 +0530 |
tree | 0e791c9bbaba763dd35fd87ef1c276762372332c | |
parent | 391f299c2af52dd380d967c101b73a5c164e9f03 [diff] |
input: synaptics_i2c_rmi4: Add check to avoid memory leak Add conditions to check if fhandler already exists in the list or not. If exists, then free the memory allocated to the new fhandler. Otherwise add the fhandler to the list. Change the location of INIT_LIST_HEAD() call to avoid memory leak. CRs-fixed: 575094 Signed-off-by: Shantanu Jain <shjain@codeaurora.org> Change-Id: Iaf1429b911baffa53f968c0ca986fec190100ded