diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index c407c7ed57cc4bdcbbdb42a20cec4a58d3e5b2cc..29a967c59d693b8dda9427a591c6994c84547e24 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -485,7 +485,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi *fl, struct r
 	}
 	if (*csum == 0)
 		*csum = -1;
-	ip6_push_pending_frames(sk);
+	err = ip6_push_pending_frames(sk);
 out:
 	return err;
 }