summaryrefslogtreecommitdiffstats
path: root/drivers/media/media-entity.c
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2018-04-30 18:20:53 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-30 18:52:17 +0200
commit2b63f1329df2cd814c1f8353fae4853ace6521d1 (patch)
treecb73bffd02e7d55c7c8bb1e6a086a5fe301363c9 /drivers/media/media-entity.c
parentMerge tag 'fixes-for-v4.17-rc3' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-2b63f1329df2cd814c1f8353fae4853ace6521d1.tar.xz
linux-2b63f1329df2cd814c1f8353fae4853ace6521d1.zip
usb: musb: host: fix potential NULL pointer dereference
musb_start_urb() doesn't check the pass-in parameter if it is NULL. But in musb_bulk_nak_timeout() the parameter passed to musb_start_urb() is returned from first_qh(), which could be NULL. So wrap the musb_start_urb() call here with a if condition check to avoid the potential NULL pointer dereference. Fixes: f283862f3b5c ("usb: musb: NAK timeout scheme on bulk TX endpoint") Cc: stable@vger.kernel.org # v3.7+ Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions