aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/hci_sock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index a7f04de03d79..a27bbc3cd4b7 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -1009,6 +1009,7 @@ static int hci_sock_getsockopt(struct socket *sock, int level, int optname,
1009 { 1009 {
1010 struct hci_filter *f = &hci_pi(sk)->filter; 1010 struct hci_filter *f = &hci_pi(sk)->filter;
1011 1011
1012 memset(&uf, 0, sizeof(uf));
1012 uf.type_mask = f->type_mask; 1013 uf.type_mask = f->type_mask;
1013 uf.opcode = f->opcode; 1014 uf.opcode = f->opcode;
1014 uf.event_mask[0] = *((u32 *) f->event_mask + 0); 1015 uf.event_mask[0] = *((u32 *) f->event_mask + 0);