diff options
author | David S. Miller <davem@davemloft.net> | 2012-02-21 17:59:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-21 17:59:19 -0500 |
commit | a5e7424d424f6398a198ead79d99e0a3c2f24ce8 (patch) | |
tree | 2fc4ba0c2664cefb38f47c372260ee379d0e2f79 /net | |
parent | 115c9b81928360d769a76c632bae62d15206a94a (diff) | |
download | kernel_goldelico_gta04-a5e7424d424f6398a198ead79d99e0a3c2f24ce8.zip kernel_goldelico_gta04-a5e7424d424f6398a198ead79d99e0a3c2f24ce8.tar.gz kernel_goldelico_gta04-a5e7424d424f6398a198ead79d99e0a3c2f24ce8.tar.bz2 |
ipv4: ping: Fix recvmsg MSG_OOB error handling.
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/ping.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index aea5a19..b072386 100644 --- 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; |