Thread (13 messages) 13 messages, 2 authors, 2013-09-16

Re: [PATCH v4 2/8] Bluetooth: Fix double error response for l2cap_create_chan_req

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2013-09-15 19:05:59

Hi Johan,
When an L2CAP request handler returns non-zero the calling code will
send a command reject response. The l2cap_create_chan_req function will
in some cases send its own response but then still return a -EFAULT
error which would cause two responses to be sent. This patch fixes this
by making the function return 0 after sending its own response.

Signed-off-by: Johan Hedberg <redacted>
---
net/bluetooth/l2cap_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Marcel Holtmann <marcel@holtmann.org>

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help