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

Commit e141e3cc authored by Anantha Krishnan's avatar Anantha Krishnan
Browse files

hidp: initialized hidp_session struct pointer to NULL



If kernel option CONFIG_BT_HIDP=y is enabled, the build fails with
uninitialized pointer error.

Change-Id: Ieeaa87c557f7c98ee9e9988ce40ba528411a46fc
Signed-off-by: default avatarAnantha Krishnan <ananthk@codeaurora.org>
parent 4d11bc8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1268,7 +1268,7 @@ int hidp_connection_add(struct hidp_connadd_req *req,
			struct socket *ctrl_sock,
			struct socket *intr_sock)
{
	struct hidp_session *session;
	struct hidp_session *session = NULL;
	struct l2cap_conn *conn;
	struct l2cap_chan *chan = l2cap_pi(ctrl_sock->sk)->chan;
	int ret;