git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: bnep: fix buffer overflow
[pandora-kernel.git]
/
net
/
bluetooth
/
bnep
/
sock.c
diff --git
a/net/bluetooth/bnep/sock.c
b/net/bluetooth/bnep/sock.c
index
2862f53
..
d935da7
100644
(file)
--- a/
net/bluetooth/bnep/sock.c
+++ b/
net/bluetooth/bnep/sock.c
@@
-88,6
+88,7
@@
static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long
sockfd_put(nsock);
return -EBADFD;
}
+ ca.device[sizeof(ca.device)-1] = 0;
err = bnep_add_connection(&ca, nsock);
if (!err) {