Page MenuHomeFreeBSD

D15607.id43104.diff
No OneTemporary

D15607.id43104.diff

Index: sys/kern/kern_descrip.c
===================================================================
--- sys/kern/kern_descrip.c
+++ sys/kern/kern_descrip.c
@@ -3508,11 +3508,12 @@
if (efbuf->remainder < kif->kf_structsize) {
/* Terminate export. */
efbuf->remainder = 0;
- return (0);
+ return (ENOMEM);
}
efbuf->remainder -= kif->kf_structsize;
}
- return (sbuf_bcat(efbuf->sb, kif, kif->kf_structsize) == 0 ? 0 : ENOMEM);
+ return (sbuf_bcat(efbuf->sb, kif, kif->kf_structsize) == 0 ? 0 :
+ sbuf_error(sb));
}
static int
@@ -3522,7 +3523,7 @@
int error;
if (efbuf->remainder == 0)
- return (0);
+ return (ENOMEM);
export_file_to_kinfo(fp, fd, rightsp, &efbuf->kif, efbuf->fdp,
efbuf->flags);
FILEDESC_SUNLOCK(efbuf->fdp);
@@ -3538,7 +3539,7 @@
int error;
if (efbuf->remainder == 0)
- return (0);
+ return (ENOMEM);
if (efbuf->fdp != NULL)
FILEDESC_SUNLOCK(efbuf->fdp);
export_vnode_to_kinfo(vp, fd, fflags, &efbuf->kif, efbuf->flags);

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 13, 8:19 PM (10 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15786728
Default Alt Text
D15607.id43104.diff (1000 B)

Event Timeline