summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ioctl.c
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-05-08 15:29:57 -0300
committerLuiz Souza <luiz@netgate.com>2018-05-08 15:29:57 -0300
commit61033f55dc6b6b9c295e0ade753c1d0b142ddd1b (patch)
treedca9d1eea2391625aced6348fd39db2bd5c8cf3a /sys/compat/linux/linux_ioctl.c
parented209f46dbcc4a79d277e0d2e93dc51a1f331be5 (diff)
parent2128561f0f5745f9e9330fbd5910e68e71159fcc (diff)
downloadFreeBSD-src-61033f55dc6b6b9c295e0ade753c1d0b142ddd1b.zip
FreeBSD-src-61033f55dc6b6b9c295e0ade753c1d0b142ddd1b.tar.gz
Merge remote-tracking branch 'origin/releng/11.1' into RELENG_2_4
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
-rw-r--r--sys/compat/linux/linux_ioctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index b77db6c..5c30c19 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -253,6 +253,7 @@ linux_ioctl_hdio(struct thread *td, struct linux_ioctl_args *args)
} else if ((args->cmd & 0xffff) == LINUX_HDIO_GET_GEO_BIG) {
struct linux_hd_big_geometry hdbg;
+ memset(&hdbg, 0, sizeof(hdbg));
hdbg.cylinders = fwcylinders;
hdbg.heads = fwheads;
hdbg.sectors = fwsectors;
@@ -2477,6 +2478,7 @@ linux_ioctl_socket(struct thread *td, struct linux_ioctl_args *args)
printf("%s(): ioctl %d on %.*s\n", __func__,
args->cmd & 0xffff, LINUX_IFNAMSIZ, lifname);
#endif
+ memset(ifname, 0, sizeof(ifname));
ifp = ifname_linux_to_bsd(td, lifname, ifname);
if (ifp == NULL)
return (EINVAL);
OpenPOWER on IntegriCloud