]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dwc2: fix potential null pointer access
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Mon, 22 Apr 2013 21:00:16 +0000 (14:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:37:55 +0000 (10:37 -0700)
commitc11cb7b95f88f28c92b0601b236e451a343fc870
treedea0c37e2d271eded00ab7696cf2852a962c4688
parenta11e96d2ba025b5a6dd1a68fc1f09911a2b52160
staging: dwc2: fix potential null pointer access

We were testing hsotg pointer for null after we had already
dereferenced it

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