Bugfix: Fix sizeof() argument.

Found by:	Haakon Loevdal
MFC after:	1 week
This commit is contained in:
hselasky 2013-01-10 08:06:12 +00:00
parent be9f533741
commit 381e55ca25

View File

@ -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 */