summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-04-03 12:14:52 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-04-03 19:52:35 +0200
commite0fdbab1699b89a9b0c192d4cb355f8ab43a8f17 (patch)
tree9a3f918a805bd503b6b5936669c2507c0d2d2b2a
parente213568ad6b06ac828fe2a050fe4ec7b69f09f37 (diff)
downloadop-kernel-dev-e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17.zip
op-kernel-dev-e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17.tar.gz
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>
-rw-r--r--net/bluetooth/bnep/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c
index c05eccc..5cf5fbd 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)
pkt[0] = BNEP_CONTROL;
pkt[1] = BNEP_CMD_NOT_UNDERSTOOD;
pkt[2] = cmd;
- bnep_send(s, pkt, sizeof(pkt));
+ err = bnep_send(s, pkt, sizeof(pkt));
}
break;
}
OpenPOWER on IntegriCloud