summaryrefslogtreecommitdiff
path: root/drivers/usb/class/cdc-acm.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-11-14 16:18:28 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-07 11:07:56 -0800
commit5becc7c07bcca18bb2c29788cc1e98596fcca96c (patch)
tree7995eaacfc6c5027307f76b2f7f63682c3a5688f /drivers/usb/class/cdc-acm.c
parentaba82d11275ae37564fcb2dd6a4e611795efd0d0 (diff)
usb: gadget: don't dereference g until after it has been null checked
[ Upstream commit b2fc059fa549fe6881d4c1f8d698b0f50bcd16ec ] Avoid dereferencing pointer g until after g has been sanity null checked; move the assignment of cdev much later when it is required into a more local scope. Detected by CoverityScan, CID#1222135 ("Dereference before null check") Fixes: b785ea7ce662 ("usb: gadget: composite: fix ep->maxburst initialization") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions