Message ID | 1311706263-14144-3-git-send-email-apw@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index 6e9c6e5..28b3d56 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -705,6 +705,7 @@ static int sco_sock_getsockopt_old(struct socket *sock, int optname, char __user break; } + memset(&cinfo, 0, sizeof(cinfo)); cinfo.hci_handle = sco_pi(sk)->conn->hcon->handle; memcpy(cinfo.dev_class, sco_pi(sk)->conn->hcon->dev_class, 3);