Message ID | CAAM7YAkB3VVNMmBMVuvEZuV6oGZeyog37_sjFGUunu+15apvZA@mail.gmail.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
On Sat, 03 Sep 2011 20:30:19 +0800, "Yan, Zheng " said: > The skb can be destructed before the while loop in unix_stream_sendmsg stops. > please try below patch. Tried this on top of next-20110831, and system is up and running fine. Feel free to stick this on it: Tested-By: Valdis Kletnieks <valdis.kletnieks@vt.edu>
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index e6d9d10..f6d7ed7 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1577,6 +1577,7 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, int sent = 0; struct scm_cookie tmp_scm; bool fds_sent = false; + bool scm_ref = true; int max_level;