staging: most: usb: check for NULL device
authorChristian Gromm <christian.gromm@microchip.com>
Thu, 23 Jan 2020 15:38:23 +0000 (16:38 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jan 2020 09:08:41 +0000 (10:08 +0100)
commitfc157998b8257fb9cfe753e7f4af1411da995c9b
treea2dafc8fa03cccf3ea7ad009e83fa77302bc4c58
parentf9e6b51a998da782cfc201dc9309d3a3d8579fef
staging: most: usb: check for NULL device

Check if the dci structer has been allocated before trying to release it.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Link: https://lore.kernel.org/r/1579793906-5054-8-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/usb/usb.c