aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/dmu_recv.c
diff options
context:
space:
mode:
authorRichard Yao <richard.yao@alumni.stonybrook.edu>2022-09-23 23:52:03 +0000
committerGitHub <noreply@github.com>2022-09-23 23:52:03 +0000
commit2a493a4c7127258b14c39e8c71a9d6f01167c5cd (patch)
tree3fcf8e9b9a84ec0dac5ae3e306524f6c02fcce7e /module/zfs/dmu_recv.c
parentd25153d55568afc92a7b3ec8329d7fbad7382a80 (diff)
downloadsrc-2a493a4c7127258b14c39e8c71a9d6f01167c5cd.tar.gz
src-2a493a4c7127258b14c39e8c71a9d6f01167c5cd.zip
Diffstat (limited to 'module/zfs/dmu_recv.c')
-rw-r--r--module/zfs/dmu_recv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/dmu_recv.c b/module/zfs/dmu_recv.c
index 55d03677feaa..0f3181f762d6 100644
--- a/module/zfs/dmu_recv.c
+++ b/module/zfs/dmu_recv.c
@@ -1874,6 +1874,8 @@ receive_object(struct receive_writer_arg *rwa, struct drr_object *drro,
if (err == 0) {
err = receive_handle_existing_object(rwa, drro, &doi, data,
&object_to_hold, &new_blksz);
+ if (err != 0)
+ return (err);
} else if (err == EEXIST) {
/*
* The object requested is currently an interior slot of a