From: Grzegorz Kolodziejczyk Date: Fri, 3 Apr 2015 10:14:52 +0000 (+0200) Subject: Bluetooth: bnep: Return err value while sending cmd is not understood X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=e0fdbab1699b89a9b0c192d4cb355f8ab43a8f17;p=deliverable%2Flinux.git 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 Signed-off-by: Marcel Holtmann --- 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; }