aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/blkptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/blkptr.c')
-rw-r--r--module/zfs/blkptr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/blkptr.c b/module/zfs/blkptr.c
index bb407af03..b7529f635 100644
--- a/module/zfs/blkptr.c
+++ b/module/zfs/blkptr.c
@@ -137,7 +137,7 @@ decode_embedded_bp(const blkptr_t *bp, void *buf, int buflen)
psize = BPE_GET_PSIZE(bp);
if (lsize > buflen)
- return (ENOSPC);
+ return (SET_ERROR(ENOSPC));
ASSERT3U(lsize, ==, buflen);
if (BP_GET_COMPRESS(bp) != ZIO_COMPRESS_OFF) {