]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcadd42dbcece2ca49c454380f25b9ba5b32b9e4f
treeca198c060abbb9959546d78772b791a03e2ee1ed
parentf688c6af0e46821e299f51c56a0e4eed5342020c
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