projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
115c9b8
)
ipv4: ping: Fix recvmsg MSG_OOB error handling.
author
David S. Miller
<davem@davemloft.net>
Tue, 21 Feb 2012 22:59:19 +0000
(17:59 -0500)
committer
David S. Miller
<davem@davemloft.net>
Tue, 21 Feb 2012 22:59:19 +0000
(17:59 -0500)
Don't return an uninitialized variable as the error, return
-EOPNOTSUPP instead.
Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ping.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/ping.c
b/net/ipv4/ping.c
index aea5a199c37a341be3fab08500f1c35a34cbf215..b072386cee218ba508d572d049b2371ba9bf370e 100644
(file)
--- a/
net/ipv4/ping.c
+++ b/
net/ipv4/ping.c
@@
-630,6
+630,7
@@
static int ping_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
pr_debug("ping_recvmsg(sk=%p,sk->num=%u)\n", isk, isk->inet_num);
+ err = -EOPNOTSUPP;
if (flags & MSG_OOB)
goto out;