dm: usb: Mark the device name as alloced when binding
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:35 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commitecdf3ab01f66585d0cb630b3ec28981dd4e7adff
treea6a3a53b49d1028455f154731adee883e54ca4aa
parentc7b63d500df707bd9c9041e0dae3a25f56098978
dm: usb: Mark the device name as alloced when binding

Since usb_find_and_bind_driver() allocates the device name it should tell
driver about that, to avoid memory leaks. Fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c