Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107347282
D15607.id43104.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1000 B
Referenced Files
None
Subscribers
None
D15607.id43104.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15607: Improve error handling for KERN_PROC_{CWD,FILEDESC}.
Attached
Detach File
Event Timeline
Log In to Comment