check ukfs_init() return valuediff -r1.4 -r1.5 src/lib/libp2k/p2k.c
(pooka)
--- src/lib/libp2k/p2k.c 2008/09/30 17:18:46 1.4
+++ src/lib/libp2k/p2k.c 2008/10/07 23:14:58 1.5
@@ -1,4 +1,4 @@
-/* $NetBSD: p2k.c,v 1.4 2008/09/30 17:18:46 pooka Exp $ */
+/* $NetBSD: p2k.c,v 1.5 2008/10/07 23:14:58 pooka Exp $ */
/*
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
@@ -146,7 +146,8 @@
int rv, sverrno;
rv = -1;
- ukfs_init();
+ if (ukfs_init() == -1)
+ return -1;
ukfs = ukfs_mount(vfsname, devpath, mountpath, mntflags, arg, alen);
if (ukfs == NULL)
return -1;