staging: most: usb: add missing put_device calls
authorChristian Gromm <christian.gromm@microchip.com>
Wed, 27 May 2020 09:06:26 +0000 (11:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 May 2020 10:26:13 +0000 (12:26 +0200)
commitf1f48239cde4373c5410c065f2a51b3ce15aa3b6
treeca198c060abbb9959546d78772b791a03e2ee1ed
parentf470a5b01bab175dc14ac078ffe1130ae975a6fd
staging: most: usb: add missing put_device calls

This patch adds the missing put_device() function calls to
properly free allocated resources and maintain reference counts.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1590570387-27069-10-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c