[xenial/master-next 1/1] UBUNTU: SAUCE: net: ipv4: fix for a race condition in raw_sendmsg -- fix backport
Andy Whitcroft
apw at canonical.com
Mon Feb 12 19:21:02 UTC 2018
Fix a miss-backport of the upstream commit.
Fixes: 63da13a92f24 ("net: ipv4: fix for a race condition in raw_sendmsg -- fix backport")
BugLink: http://bugs.launchpad.net/bugs/1748671
Signed-off-by: Andy Whitcroft <apw at canonical.com>
---
net/ipv4/raw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
index 83a609bc7c57..3b764c0c1fec 100644
--- a/net/ipv4/raw.c
+++ b/net/ipv4/raw.c
@@ -621,7 +621,7 @@ static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
goto done;
}
- if (hdrincl) {
+ if (!hdrincl) {
rfv.msg = msg;
rfv.hlen = 0;
--
2.15.1
More information about the kernel-team
mailing list