]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit39502e96da861bfca7e11229f60f33936dbe83cd
tree4da82b4a65ccbb0c258756e0e1b93e1afd0f039f
parentb251e36ab65a06cad288b958b8779858488fb849
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