summaryrefslogtreecommitdiff
path: root/drivers/w1/masters/w1-gpio.c
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2015-10-13 17:06:24 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 04:42:29 (GMT)
commita2a47d00c08e2306185945dabaafd11447641077 (patch)
tree914dd706efe4ebe52972b5a6a52e6d88c4d2119d /drivers/w1/masters/w1-gpio.c
parent82ff3ac7641a645b55f3bee4acceabf6f17e62f4 (diff)
downloadlinux-a2a47d00c08e2306185945dabaafd11447641077.tar.xz
misc: mic: fix memory leak
In scif_node_connect() we were returning if the initialization of p2p_ji fails. But at that time p2p_ij has already been initialized and resources allocated for it. And since p2p_ij is not added to the list till now so we will have a leak. Lets deinitialize and release the resources connected to p2p_ij. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Reviewed-by: Sudeep Dutt <sudeep.dutt@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/masters/w1-gpio.c')
0 files changed, 0 insertions, 0 deletions