Explorar o código

Bluetooth: Fix bug in kzalloc allocation size

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

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Gustavo F. Padovan %!s(int64=15) %!d(string=hai) anos
pai
achega
89746b856c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      net/bluetooth/l2cap.c

+ 1 - 1
net/bluetooth/l2cap.c

@@ -530,7 +530,7 @@ static void l2cap_conn_start(struct l2cap_conn *conn)
 						conn->feat_mask)
 						conn->feat_mask)
 						&& l2cap_pi(sk)->conf_state &
 						&& l2cap_pi(sk)->conf_state &
 						L2CAP_CONF_STATE2_DEVICE) {
 						L2CAP_CONF_STATE2_DEVICE) {
-					tmp1 = kzalloc(sizeof(struct srej_list),
+					tmp1 = kzalloc(sizeof(struct sock_del_list),
 							GFP_ATOMIC);
 							GFP_ATOMIC);
 					tmp1->sk = sk;
 					tmp1->sk = sk;
 					list_add_tail(&tmp1->list, &del.list);
 					list_add_tail(&tmp1->list, &del.list);