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

Commit 8fce6357 authored by Szymon Janc's avatar Szymon Janc Committed by Gustavo Padovan
Browse files

Bluetooth: Allow for NULL data in mgmt_pending_add



Since index is in mgmt_hdr it is possible to have mgmt command with
no parameters that still needs to add itself to pending list.

Signed-off-by: default avatarSzymon Janc <szymon.janc@tieto.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent c68fb7ff
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -239,6 +239,7 @@ static struct pending_cmd *mgmt_pending_add(struct sock *sk, u16 opcode,
		return NULL;
	}

	if (data)
		memcpy(cmd->param, data, len);

	cmd->sk = sk;