usb/mtp: avoid dynamic stack allocation
commit06aa50c06c6392084244f8169d34b8e2d9c43ef2
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 May 2021 13:29:13 +0000 (3 15:29 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 May 2021 06:38:40 +0000 (4 08:38 +0200)
tree071fabc035edca5e185ca5e6cf5498d9ffdcba88
parent7ec54f9eb62b5d177e30eb8b1cad795a5f8d8986
usb/mtp: 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-4-kraxel@redhat.com>
hw/usb/dev-mtp.c