]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: cdns3: Fix use after free in probe error handling
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 4 Sep 2019 10:01:02 +0000 (13:01 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 09:02:58 +0000 (11:02 +0200)
commit5f318dad72d227438f4da4c57afb2dfbd9dacddb
tree0acb9e7e48b2040dd2910d873bd20eae774d8982
parent177238c3d47d54b2ed8f0da7a4290db492f4a057
usb: cdns3: Fix use after free in probe error handling

We can't use "wrap" after it has been freed.

Fixes: 7733f6c32e36 ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20190904100102.GB7007@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdns3-pci-wrap.c