projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b22457
)
rxrpc: Check the return value of rxrpc_locate_data()
author
David Howells
<dhowells@redhat.com>
Sat, 17 Sep 2016 09:49:11 +0000
(10:49 +0100)
committer
David Howells
<dhowells@redhat.com>
Sat, 17 Sep 2016 09:50:49 +0000
(10:50 +0100)
Check the return value of rxrpc_locate_data() in rxrpc_recvmsg_data().
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/recvmsg.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rxrpc/recvmsg.c
b/net/rxrpc/recvmsg.c
index 0d085f5cf1bfb375622c6556bf4f8aae2514e02d..1edf2cf62cc528445e124c7645366db94a0d9cd7 100644
(file)
--- a/
net/rxrpc/recvmsg.c
+++ b/
net/rxrpc/recvmsg.c
@@
-300,10
+300,13
@@
static int rxrpc_recvmsg_data(struct socket *sock, struct rxrpc_call *call,
if (msg)
sock_recv_timestamp(msg, sock->sk, skb);
- if (rx_pkt_offset == 0)
+ if (rx_pkt_offset == 0)
{
ret = rxrpc_locate_data(call, skb,
&call->rxtx_annotations[ix],
&rx_pkt_offset, &rx_pkt_len);
+ if (ret < 0)
+ goto out;
+ }
_debug("recvmsg %x DATA #%u { %d, %d }",
sp->hdr.callNumber, seq, rx_pkt_offset, rx_pkt_len);