diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
commit | 24bfb00123e82a2e70bd115277d922438813515b (patch) | |
tree | 27328b8a5718e16d64e2d101f4b7ddcad5930aed /drivers/bluetooth/hci_ldisc.c | |
parent | c6135234550ed89a6fd0e8cb229633967e41d649 (diff) | |
parent | 3f00d3e8fb963968a922d821a9a53b503b687e81 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index 4a775f6ea390..573ff6c1be5f 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -272,13 +272,11 @@ static int hci_uart_tty_open(struct tty_struct *tty) | |||
272 | if (hu) | 272 | if (hu) |
273 | return -EEXIST; | 273 | return -EEXIST; |
274 | 274 | ||
275 | if (!(hu = kmalloc(sizeof(struct hci_uart), GFP_KERNEL))) { | 275 | if (!(hu = kzalloc(sizeof(struct hci_uart), GFP_KERNEL))) { |
276 | BT_ERR("Can't allocate controll structure"); | 276 | BT_ERR("Can't allocate controll structure"); |
277 | return -ENFILE; | 277 | return -ENFILE; |
278 | } | 278 | } |
279 | 279 | ||
280 | memset(hu, 0, sizeof(struct hci_uart)); | ||
281 | |||
282 | tty->disc_data = hu; | 280 | tty->disc_data = hu; |
283 | hu->tty = tty; | 281 | hu->tty = tty; |
284 | 282 | ||