Bluetooth: Fix bug in kzalloc allocation size
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 9 Jul 2010 19:38:34 +0000 (16:38 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 21 Jul 2010 17:39:11 +0000 (10:39 -0700)
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>
net/bluetooth/l2cap.c

index e366be0792cbadcb3e171c2e850cf343f4ef5636..419e2c3306aae819dbcd3d9def24f398f7f3916d 100644 (file)
@@ -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);