staging: dwc2: fix potential use after free
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 23 Nov 2013 00:43:46 +0000 (16:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 19:59:57 +0000 (11:59 -0800)
commitfbd1cd202739558210fd8f441b36601b29050bf4
tree4da82b4a65ccbb0c258756e0e1b93e1afd0f039f
parent9bda1aac6b98d79f06df4ae40711bf08d23e766d
staging: dwc2: fix potential use after free

dwc2_process_non_isoc_desc() can potentially free the qtd, so null
out the qtd pointer if the call fails so we don't try to access it
later

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd_ddma.c