]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit85f794cc4d09b71baaad2ae88d93354fa42d05f2
treea6a3a53b49d1028455f154731adee883e54ca4aa
parentc0371f5950672afec0c2405609c4acb02d2fa300
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