aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/bnep
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 /net/bluetooth/bnep
parentBluetooth: Disallow LE local out-of-band data when LE privacy is used (diff)
downloadlinux-dev-e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17.tar.xz
linux-dev-e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17.zip
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/bnep')
-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 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)
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;
}