Page MenuHomeFreeBSD

D34114.diff
No OneTemporary

D34114.diff

diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c
--- a/sys/compat/lindebugfs/lindebugfs.c
+++ b/sys/compat/lindebugfs/lindebugfs.c
@@ -130,8 +130,14 @@
if ((rc = linux_set_current_flags(curthread, M_NOWAIT)))
return (rc);
vn.v_data = d->dm_data;
- buf = uio->uio_iov[0].iov_base;
- len = min(uio->uio_iov[0].iov_len, uio->uio_resid);
+ if (uio->uio_rw == UIO_READ) {
+ buf = uio->uio_iov[0].iov_base;
+ len = min(uio->uio_iov[0].iov_len, uio->uio_resid);
+ } else {
+ sbuf_finish(sb);
+ buf = sbuf_data(sb);
+ len = sbuf_len(sb);
+ }
off = 0;
lf.private_data = NULL;
rc = d->dm_fops->open(&vn, &lf);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 18, 12:36 AM (21 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14687634
Default Alt Text
D34114.diff (655 B)

Event Timeline