mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
ipv4: ping: Fix recvmsg MSG_OOB error handling.
Don't return an uninitialized variable as the error, return -EOPNOTSUPP instead. Reported-by: Dave Jones <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
115c9b8192
commit
a5e7424d42
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue