diff options
Diffstat (limited to 'sys/arch/aviion/dev/vme.c')
-rw-r--r-- | sys/arch/aviion/dev/vme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/aviion/dev/vme.c b/sys/arch/aviion/dev/vme.c index 88b982fd082..4c82e2dc31e 100644 --- a/sys/arch/aviion/dev/vme.c +++ b/sys/arch/aviion/dev/vme.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vme.c,v 1.11 2010/12/31 21:38:08 miod Exp $ */ +/* $OpenBSD: vme.c,v 1.12 2011/04/07 15:30:15 miod Exp $ */ /* * Copyright (c) 2006, 2007, 2010 Miodrag Vallat. * @@ -497,7 +497,7 @@ vme_map_r(const struct vme_range *r, paddr_t pa, psize_t len, int flags, u_int pg; ova = va = uvm_km_valloc(kernel_map, len); - if (va == NULL) + if (va == 0) return ENOMEM; pa += r->vr_base; |