]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: Fix issues in dwc2_complete_non_isoc_xfer_ddma()
authorJohn Youn <johnyoun@synopsys.com>
Tue, 1 Mar 2016 01:53:35 +0000 (17:53 -0800)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:48 +0000 (15:14 +0200)
commit58b9ac3f935b938c4c303bd54ab5708f4b484843
tree56a9fda3a070f11fbc6dfa3ba1936dc5d63d79d4
parent25271328b09d275836935741c2a359e41de1f61b
usb: dwc2: Fix issues in dwc2_complete_non_isoc_xfer_ddma()

Fixes a static analysis issue in dwc2_complete_non_isoc_xfer_ddma(). The
qtd was being passed to a function after being freed. It was not being
used in the function so this doesn't fix any bugs. But it fixes up the
warning and makes the code safer by setting qtd to NULL and not using it
at all.

Reported-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/hcd_ddma.c