usb/hid: avoid dynamic stack allocation
commit3f67e2e7f135b8be4117f3c2960e78d894feaa03
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 May 2021 13:29:11 +0000 (3 15:29 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 May 2021 06:38:23 +0000 (4 08:38 +0200)
treea3a4822ee0f0f966c7632848ccb36561956b7ac9
parent9c3c834bdda5ca6d58c0e61508737683d12968b5
usb/hid: avoid dynamic stack allocation

Use autofree heap allocation instead.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20210503132915.2335822-2-kraxel@redhat.com>
hw/usb/dev-hid.c
hw/usb/dev-wacom.c