Page MenuHomeFreeBSD

D43146.diff
No OneTemporary

D43146.diff

diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c
--- a/sys/geom/geom_ctl.c
+++ b/sys/geom/geom_ctl.c
@@ -616,8 +616,10 @@
}
}
if (sbuf_done(req->serror)) {
- copyout(sbuf_data(req->serror), req->error,
+ nerror = copyout(sbuf_data(req->serror), req->error,
imin(req->lerror, sbuf_len(req->serror) + 1));
+ if (nerror != 0 && req->nerror == 0)
+ req->nerror = nerror;
}
nerror = req->nerror;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 5:48 AM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14711372
Default Alt Text
D43146.diff (423 B)

Event Timeline