I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
16 lines
561 B
Diff
16 lines
561 B
Diff
Index: sys/compat/linux/linux_ioctl.c
|
|
===================================================================
|
|
--- sys/compat/linux/linux_ioctl.c (revision 242578)
|
|
+++ sys/compat/linux/linux_ioctl.c (working copy)
|
|
@@ -2260,8 +2260,9 @@ again:
|
|
|
|
ifc.ifc_len = valid_len;
|
|
sbuf_finish(sb);
|
|
- memcpy(PTRIN(ifc.ifc_buf), sbuf_data(sb), ifc.ifc_len);
|
|
- error = copyout(&ifc, uifc, sizeof(ifc));
|
|
+ error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len);
|
|
+ if (error == 0)
|
|
+ error = copyout(&ifc, uifc, sizeof(ifc));
|
|
sbuf_delete(sb);
|
|
CURVNET_RESTORE();
|
|
|