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

Commit e32e4ba4 authored by Deepak Kumar Singh's avatar Deepak Kumar Singh Committed by Gerrit - the friendly Code Review server
Browse files

net: ipc_router: Decrement ref count for remote port



Ref count for remote port pointer is not being decremented
at function exit thereby causing memory leak of 128 byte.

Decrementing ref count for remote port pointer after its usage is done.

CRs-Fixed: 2315498
Change-Id: Ida00220201f3dba589a65d9b2ba84b83d6b00004
Signed-off-by: default avatarDeepak Kumar Singh <deesin@codeaurora.org>
parent 32df5cfb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4298,6 +4298,8 @@ void msm_ipc_router_xprt_notify(struct msm_ipc_router_xprt *xprt,
		}
	}
	mutex_unlock(&xprt_info->rx_lock_lhb2);
	if (rport_ptr)
		kref_put(&rport_ptr->ref, ipc_router_release_rport);
	kthread_queue_work(&xprt_info->kworker, &xprt_info->read_data);
}