diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2018-04-04 14:41:48 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2018-04-04 14:41:48 +0000 |
| commit | d851b216eb6879bbd34d7ddbab6ad53602fe61ec (patch) | |
| tree | 8fa58ada74c8f68fbea6642513176e1f401b6763 /sys/compat/linux/linux_ioctl.c | |
| parent | cde6fa285725aa9ec03c030f1fff8101048aed7c (diff) | |
Notes
Diffstat (limited to 'sys/compat/linux/linux_ioctl.c')
| -rw-r--r-- | sys/compat/linux/linux_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 9c417fad79af..880aff267c4a 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; |
