Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d1865b1c authored by Shantanu Jain's avatar Shantanu Jain Committed by Gerrit - the friendly Code Review server
Browse files

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

This patch is propagated from msm-3.10 kernel
(commit: 89e6a2c4d5b7c9ebeeb190b4f28bff5b2dd95fcb
input: synaptics_i2c_rmi4: Add check to avoid memory leak)

Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
Change-Id: Iaf1429b911baffa53f968c0ca986fec190100ded
parent 81ec4fe4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment