diff --git a/sys/dev/ic/mlx.c b/sys/dev/ic/mlx.c index 33bacae1b60d..09ab8c430d95 100644 --- a/sys/dev/ic/mlx.c +++ b/sys/dev/ic/mlx.c @@ -1,4 +1,4 @@ -/* $NetBSD: mlx.c,v 1.23 2002/10/06 23:17:46 kristerw Exp $ */ +/* $NetBSD: mlx.c,v 1.24 2002/10/08 12:51:20 ad Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -74,7 +74,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.23 2002/10/06 23:17:46 kristerw Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mlx.c,v 1.24 2002/10/08 12:51:20 ad Exp $"); #include "ld.h" @@ -1891,6 +1891,7 @@ mlx_ccb_alloc(struct mlx_softc *mlx, struct mlx_ccb **mcp, int control) int s; s = splbio(); + mc = SLIST_FIRST(&mlx->mlx_ccb_freelist); if (control) { if (mlx->mlx_nccbs_ctrl >= MLX_NCCBS_CONTROL) { splx(s); @@ -1900,7 +1901,6 @@ mlx_ccb_alloc(struct mlx_softc *mlx, struct mlx_ccb **mcp, int control) mc->mc_flags |= MC_CONTROL; mlx->mlx_nccbs_ctrl++; } - mc = SLIST_FIRST(&mlx->mlx_ccb_freelist); SLIST_REMOVE_HEAD(&mlx->mlx_ccb_freelist, mc_chain.slist); splx(s);