Message ID | 1311706273-14191-2-git-send-email-apw@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c index 9ebd3c6..7d31198 100644 --- a/net/bluetooth/bnep/sock.c +++ b/net/bluetooth/bnep/sock.c @@ -97,6 +97,7 @@ static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long fput(nsock->file); return -EBADFD; } + ca.device[sizeof(ca.device)-1] = 0; err = bnep_add_connection(&ca, nsock); if (!err) {