]> git.baikalelectronics.ru Git - kernel.git/commit
xhci-ext-caps.c: Add missing platform_device_put() on error in xhci_create_intel_xhci...
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 5 Sep 2019 10:00:01 +0000 (10:00 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 12:37:53 +0000 (14:37 +0200)
commit48072c7358c6dd0dfb0fb88eeada5008d95c277b
tree5e574bda8a5e35bd14c29a987437cfa98b254caa
parent83c8e33abd0d151c55bb1b349b8bee3526f125ac
xhci-ext-caps.c: Add missing platform_device_put() on error in xhci_create_intel_xhci_sw_pdev()

Add the missing platform_device_put() before return from
xhci_create_intel_xhci_sw_pdev() in the error handling case.

Fixes: a892b21ff214 ("xhci-ext-caps.c: Add property to disable Intel SW switch")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20190905100001.128349-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ext-caps.c