Bugfix: Fix sizeof() argument.
Found by: Haakon Loevdal MFC after: 1 week
This commit is contained in:
parent
be9f533741
commit
381e55ca25
@ -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…
x
Reference in New Issue
Block a user