]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle copyin failures.
authorbdrewery <bdrewery@FreeBSD.org>
Tue, 22 Mar 2016 22:41:14 +0000 (22:41 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Tue, 22 Mar 2016 22:41:14 +0000 (22:41 +0000)
commitf16f170e156f1cc5c2d9bbdf9bba2a4cc4ef9964
tree40af073df708b5bf9c37c1aaead503f685419cc7
parent2ad8510bd2f9636d4f49c0c04875618792a5ad4b
Handle copyin failures.

Skip the log entry as there is nothing good to write out.  Don't fail
the syscall though since it already succeeded.  There's no reason
filemon's tracing failure should fail the already-succeeded syscall.

Record the error for later to return from close(2) on the filemon devfs
file descriptor.

Discussed with: markj, sjg, kib (briefly with kib)
Reported by: mjg
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
share/man/man4/filemon.4
sys/dev/filemon/filemon_wrapper.c