diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2015-04-03 06:14:52 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-03 13:52:35 -0400 |
commit | e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17 (patch) | |
tree | 9a3f918a805bd503b6b5936669c2507c0d2d2b2a /net/bluetooth | |
parent | e213568ad6b06ac828fe2a050fe4ec7b69f09f37 (diff) |
Bluetooth: bnep: Return err value while sending cmd is not understood
Send command not understood response should be verified if it was
successfully sent, like all send responses.
Signed-off-by: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/bnep/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c index c05eccc1cf82..5cf5fbd2908d 100644 --- a/net/bluetooth/bnep/core.c +++ b/net/bluetooth/bnep/core.c | |||
@@ -239,7 +239,7 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len) | |||
239 | pkt[0] = BNEP_CONTROL; | 239 | pkt[0] = BNEP_CONTROL; |
240 | pkt[1] = BNEP_CMD_NOT_UNDERSTOOD; | 240 | pkt[1] = BNEP_CMD_NOT_UNDERSTOOD; |
241 | pkt[2] = cmd; | 241 | pkt[2] = cmd; |
242 | bnep_send(s, pkt, sizeof(pkt)); | 242 | err = bnep_send(s, pkt, sizeof(pkt)); |
243 | } | 243 | } |
244 | break; | 244 | break; |
245 | } | 245 | } |