Fixed build with locks_up.c

This commit is contained in:
stacktic 2012-04-28 18:04:02 +00:00
parent 57f4d08bde
commit 645f62c493
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locks_up.c,v 1.5 2010/12/01 17:22:51 pooka Exp $ */ /* $NetBSD: locks_up.c,v 1.6 2012/04/28 18:04:02 stacktic Exp $ */
/* /*
* Copyright (c) 2010 Antti Kantee. All Rights Reserved. * Copyright (c) 2010 Antti Kantee. All Rights Reserved.
@ -35,7 +35,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: locks_up.c,v 1.5 2010/12/01 17:22:51 pooka Exp $"); __KERNEL_RCSID(0, "$NetBSD: locks_up.c,v 1.6 2012/04/28 18:04:02 stacktic Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/kernel.h> #include <sys/kernel.h>
@ -160,6 +160,7 @@ mutex_owned(kmutex_t *mtx)
struct lwp * struct lwp *
mutex_owner(kmutex_t *mtx) mutex_owner(kmutex_t *mtx)
{ {
UPMTX(mtx);
return upm->upm_owner; return upm->upm_owner;
} }