aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/vdev_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/vdev_root.c')
-rw-r--r--module/zfs/vdev_root.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/vdev_root.c b/module/zfs/vdev_root.c
index 5241b0215..90250b0fb 100644
--- a/module/zfs/vdev_root.c
+++ b/module/zfs/vdev_root.c
@@ -24,7 +24,7 @@
*/
/*
- * Copyright (c) 2012 by Delphix. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
*/
#include <sys/zfs_context.h>
@@ -63,7 +63,7 @@ vdev_root_open(vdev_t *vd, uint64_t *asize, uint64_t *max_asize,
if (vd->vdev_children == 0) {
vd->vdev_stat.vs_aux = VDEV_AUX_BAD_LABEL;
- return (EINVAL);
+ return (SET_ERROR(EINVAL));
}
vdev_open_children(vd);