Date: Thu, 27 Feb 2003 15:32:00 -0800 From: Maksim Yevmenkin <myevmenk@exodus.net> To: current@freebsd.org Subject: PATCH: typo in socreate() or i'm missing something Message-ID: <3E5E9FF0.3030106@exodus.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------050401070204020509090907 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear Hackets, Please find the attached patch for socreate() in uipc_socket.c. I think the code was supposed to call soalloc(0) rather then soalloc(M_NOWAIT). Note M_NOWAIT defined as 1. Is that a real typo or i'm missing something here? thanks, max --------------050401070204020509090907 Content-Type: text/plain; name="uipc_socket.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="uipc_socket.c.diff" --- uipc_socket.c.orig Thu Feb 27 15:24:52 2003 +++ uipc_socket.c Thu Feb 27 15:25:08 2003 @@ -194,7 +194,7 @@ if (prp->pr_type != type) return (EPROTOTYPE); - so = soalloc(M_NOWAIT); + so = soalloc(0); if (so == NULL) return (ENOBUFS); --------------050401070204020509090907-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5E9FF0.3030106>