| Submitter | Andy Whitcroft |
|---|---|
| Date | July 26, 2011, 6:51 p.m. |
| Message ID | <1311706263-14144-2-git-send-email-apw@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/106906/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index dffee7c..cd76104 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -820,6 +820,7 @@ static int sco_sock_getsockopt(struct socket *sock, int level, int optname, char 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);