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

Commit 89746b85 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Marcel Holtmann
Browse files

Bluetooth: Fix bug in kzalloc allocation size



Probably a typo error. We were using the wrong struct to get size.

Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2cdf096f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -530,7 +530,7 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
						conn->feat_mask)
						&& l2cap_pi(sk)->conf_state &
						L2CAP_CONF_STATE2_DEVICE) {
					tmp1 = kzalloc(sizeof(struct srej_list),
					tmp1 = kzalloc(sizeof(struct sock_del_list),
							GFP_ATOMIC);
					tmp1->sk = sk;
					list_add_tail(&tmp1->list, &del.list);