* [PATCH] bnep:Fix variable assignment to function return value in the function bnep_rx_extenstion
@ 2015-08-21 3:11 Nicholas Krause
0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2015-08-21 3:11 UTC (permalink / raw)
To: marcel
Cc: gustavo, johan.hedberg, davem, grzegorz.kolodziejczyk, viro,
linux-bluetooth, netdev
This fixes variable assignment for the variable err that returns
to the caller of bnep_rx_extension has finish all its intended work
or has failed by returning a error code to be properly assigned to
the return value of the call to the function bnep_rx_control due to
this function being able to fail and callers of bnep_rx_extension
needing to be able to properly be signaled when this occurs.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
net/bluetooth/bnep/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/bnep/core.c b/net/bluetooth/bnep/core.c
index 1641367..09cecb3a 100644
--- a/net/bluetooth/bnep/core.c
+++ b/net/bluetooth/bnep/core.c
@@ -270,7 +270,7 @@ static int bnep_rx_extension(struct bnep_session *s, struct sk_buff *skb)
switch (h->type & BNEP_TYPE_MASK) {
case BNEP_EXT_CONTROL:
- bnep_rx_control(s, skb->data, skb->len);
+ err = bnep_rx_control(s, skb->data, skb->len);
break;
default:
--
2.1.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-21 3:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-21 3:11 [PATCH] bnep:Fix variable assignment to function return value in the function bnep_rx_extenstion Nicholas Krause
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.