diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2010-07-09 15:38:34 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-07-21 13:39:11 -0400 |
commit | 89746b856c88af9e5019e84615d88e002fb54dc3 (patch) | |
tree | 943da9cb41e59aae2778733bb25022752d784995 /net/bluetooth | |
parent | 2cdf096fffaa257e7449611295a38c46dc921c8b (diff) |
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c index e366be0792cb..419e2c3306aa 100644 --- a/net/bluetooth/l2cap.c +++ b/net/bluetooth/l2cap.c | |||
@@ -530,7 +530,7 @@ static void l2cap_conn_start(struct l2cap_conn *conn) | |||
530 | conn->feat_mask) | 530 | conn->feat_mask) |
531 | && l2cap_pi(sk)->conf_state & | 531 | && l2cap_pi(sk)->conf_state & |
532 | L2CAP_CONF_STATE2_DEVICE) { | 532 | L2CAP_CONF_STATE2_DEVICE) { |
533 | tmp1 = kzalloc(sizeof(struct srej_list), | 533 | tmp1 = kzalloc(sizeof(struct sock_del_list), |
534 | GFP_ATOMIC); | 534 | GFP_ATOMIC); |
535 | tmp1->sk = sk; | 535 | tmp1->sk = sk; |
536 | list_add_tail(&tmp1->list, &del.list); | 536 | list_add_tail(&tmp1->list, &del.list); |