kernel/usb4bsd: Fix sizeof().
authorSascha Wildner <saw@online.de>
Mon, 14 Jan 2013 18:22:58 +0000 (19:22 +0100)
committerSascha Wildner <saw@online.de>
Mon, 14 Jan 2013 18:22:58 +0000 (19:22 +0100)
sys/bus/u4b/quirk/usb_quirk.c

index 23b343f..8fe368d 100644 (file)
@@ -774,7 +774,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));
                }
                lockmgr(&usb_quirk_lock, LK_RELEASE);
                return (0);             /* success */