Re: [PATCH char-misc-next v3] misc: mic: fix memory leak

2015-10-13 Thread Sudeep Dutt
On Tue, 2015-10-13 at 22:36 +0530, Sudip Mukherjee wrote: > 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

[PATCH char-misc-next v3] misc: mic: fix memory leak

2015-10-13 Thread Sudip Mukherjee
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

[PATCH char-misc-next v3] misc: mic: fix memory leak

2015-10-13 Thread Sudip Mukherjee
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

Re: [PATCH char-misc-next v3] misc: mic: fix memory leak

2015-10-13 Thread Sudeep Dutt
On Tue, 2015-10-13 at 22:36 +0530, Sudip Mukherjee wrote: > 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