Module Name:    src
Committed By:   pgoyette
Date:           Thu Jan 21 04:40:23 UTC 2010

Modified Files:
        src/sys/kern: uipc_syscalls.c

Log Message:
Remove unnecessary call to kauth_cred_free().

This resolves an occassional crash I'd been experiencing as reported on
current-users@

Fix suggested by and OK elad@


To generate a diff of this commit:
cvs rdiff -u -r1.139 -r1.140 src/sys/kern/uipc_syscalls.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/uipc_syscalls.c
diff -u src/sys/kern/uipc_syscalls.c:1.139 src/sys/kern/uipc_syscalls.c:1.140
--- src/sys/kern/uipc_syscalls.c:1.139	Tue Dec 29 04:23:43 2009
+++ src/sys/kern/uipc_syscalls.c	Thu Jan 21 04:40:22 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_syscalls.c,v 1.139 2009/12/29 04:23:43 elad Exp $	*/
+/*	$NetBSD: uipc_syscalls.c,v 1.140 2010/01/21 04:40:22 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.139 2009/12/29 04:23:43 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_syscalls.c,v 1.140 2010/01/21 04:40:22 pgoyette Exp $");
 
 #include "opt_pipe.h"
 
@@ -233,7 +233,6 @@
 	sounlock(so);
 	if (error) {
 		/* an error occurred, free the file descriptor and mbuf */
-		kauth_cred_free(so2->so_cred);
 		m_freem(nam);
 		mutex_enter(&fp2->f_lock);
 		fp2->f_count++;

Reply via email to