aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2013-02-13 15:03:34 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2013-02-13 15:03:58 +0700
commit5f9dde0757e557d16685d29b21a6055025ec252e (patch)
tree5f34dae1bcf94f1865c18ba9aced566abeb855b7 /net/bluetooth
parent6b5ed324376aa451c3a51e367148da41c21ae36a (diff)
parenta96dbfbcb58afeec72c2a0a03d205e0e1457ea3d (diff)
downloadkernel_samsung_aries-5f9dde0757e557d16685d29b21a6055025ec252e.zip
kernel_samsung_aries-5f9dde0757e557d16685d29b21a6055025ec252e.tar.gz
kernel_samsung_aries-5f9dde0757e557d16685d29b21a6055025ec252e.tar.bz2
Merge 3.0.63
Change-Id: I9a9716dcb833c128a649864690169473ec4739e1
Diffstat (limited to 'net/bluetooth')
-rwxr-xr-xnet/bluetooth/hci_event.c2
-rw-r--r--net/bluetooth/hidp/core.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 5a7074a..0d6f70a 100755
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1977,7 +1977,7 @@ static inline void hci_cmd_complete_evt(struct hci_dev *hdev, struct sk_buff *sk
if (ev->opcode != HCI_OP_NOP)
del_timer(&hdev->cmd_timer);
- if (ev->ncmd) {
+ if (ev->ncmd && !test_bit(HCI_RESET, &hdev->flags)) {
atomic_set(&hdev->cmd_cnt, 1);
if (!skb_queue_empty(&hdev->cmd_q))
tasklet_schedule(&hdev->cmd_task);
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index fb68f34..06f1197 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -936,7 +936,7 @@ static int hidp_setup_hid(struct hidp_session *session,
hid->version = req->version;
hid->country = req->country;
- strncpy(hid->name, req->name, 128);
+ strncpy(hid->name, req->name, sizeof(req->name) - 1);
strncpy(hid->phys, batostr(&bt_sk(session->ctrl_sock->sk)->src), 64);
strncpy(hid->uniq, batostr(&bt_sk(session->ctrl_sock->sk)->dst), 64);