Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove unnecessary call to kauth_cred_free().
details: https://anonhg.NetBSD.org/src/rev/8efde57238a6
branches: trunk
changeset: 751003:8efde57238a6
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jan 21 04:40:22 2010 +0000
description:
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@
diffstat:
sys/kern/uipc_syscalls.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 79e672a1bdb5 -r 8efde57238a6 sys/kern/uipc_syscalls.c
--- a/sys/kern/uipc_syscalls.c Thu Jan 21 02:53:51 2010 +0000
+++ b/sys/kern/uipc_syscalls.c Thu Jan 21 04:40:22 2010 +0000
@@ -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++;
Home |
Main Index |
Thread Index |
Old Index