projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e9fb6d
)
Bluetooth: Replace EPERM by EALREADY in hci_cancel_inquiry
author
Andre Guedes
<aguedespe@gmail.com>
Tue, 20 Mar 2012 03:13:38 +0000
(
00:13
-0300)
committer
Gustavo Padovan
<gustavo@padovan.org>
Wed, 9 May 2012 03:41:33 +0000
(
00:41
-0300)
We should return -EALREADY in hci_cancel_inquiry since it is more
suitable than -EPERM error code.
Signed-off-by: Andre Guedes <aguedespe@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/hci_core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hci_core.c
b/net/bluetooth/hci_core.c
index e3920b693f04d1896f3d988b500676621674842d..cc3d164f56fb50c0bfbce6b2b648cbde9190c652 100644
(file)
--- a/
net/bluetooth/hci_core.c
+++ b/
net/bluetooth/hci_core.c
@@
-2956,7
+2956,7
@@
int hci_cancel_inquiry(struct hci_dev *hdev)
BT_DBG("%s", hdev->name);
if (!test_bit(HCI_INQUIRY, &hdev->flags))
- return -E
PERM
;
+ return -E
ALREADY
;
return hci_send_cmd(hdev, HCI_OP_INQUIRY_CANCEL, 0, NULL);
}