mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Bugfix: Fix sizeof() argument.
Found by: Haakon Loevdal MFC after: 1 week
This commit is contained in:
parent
60867f577a
commit
bdf43bb5c3
1 changed files with 1 additions and 1 deletions
|
|
@ -799,7 +799,7 @@ usb_quirk_ioctl(unsigned long cmd, caddr_t data,
|
|||
}
|
||||
if (x == USB_SUB_QUIRKS_MAX) {
|
||||
/* all quirk entries are unused - release */
|
||||
memset(pqe, 0, sizeof(pqe));
|
||||
memset(pqe, 0, sizeof(*pqe));
|
||||
}
|
||||
mtx_unlock(&usb_quirk_mtx);
|
||||
return (0); /* success */
|
||||
|
|
|
|||
Loading…
Reference in a new issue