X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/908b5ff6c75734cb1c729163dc81aa9e670aea44..dadab5e9782225b1752766daee5c789e2266b933:/sys/dev/raid/asr/asr.c diff --git a/sys/dev/raid/asr/asr.c b/sys/dev/raid/asr/asr.c index f26e224011..a4d14b0e9a 100644 --- a/sys/dev/raid/asr/asr.c +++ b/sys/dev/raid/asr/asr.c @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/dev/asr/asr.c,v 1.3.2.2 2001/08/23 05:21:29 scottl Exp $ */ -/* $DragonFly: src/sys/dev/raid/asr/asr.c,v 1.4 2003/06/23 18:11:59 dillon Exp $ */ +/* $DragonFly: src/sys/dev/raid/asr/asr.c,v 1.5 2003/06/25 03:55:46 dillon Exp $ */ /* * Copyright (c) 1996-2000 Distributed Processing Technology Corporation * Copyright (c) 2000-2001 Adaptec Corporation @@ -3882,10 +3882,11 @@ asr_open( if (ASR_get_sc (dev) == (Asr_softc_t *)NULL) { return (ENODEV); } + KKASSERT(td->td_proc); s = splcam (); if (ASR_ctlr_held) { error = EBUSY; - } else if ((error = suser_xxx(td->td_proc->p_ucred, 0)) == 0) { + } else if ((error = suser_cred(td->td_proc->p_ucred, 0)) == 0) { ++ASR_ctlr_held; } splx(s);