summaryrefslogtreecommitdiffstats
path: root/drivers/tc
diff options
context:
space:
mode:
authorColin Ian King2017-11-14 17:18:28 +0100
committerFelipe Balbi2017-11-28 12:04:50 +0100
commitb2fc059fa549fe6881d4c1f8d698b0f50bcd16ec (patch)
tree179ab5772ba2175236fce42963f1e99fd8f3a1ae /drivers/tc
parentusb: bdc: fix platform_no_drv_owner.cocci warnings (diff)
downloadkernel-qcow2-linux-b2fc059fa549fe6881d4c1f8d698b0f50bcd16ec.tar.gz
kernel-qcow2-linux-b2fc059fa549fe6881d4c1f8d698b0f50bcd16ec.tar.xz
kernel-qcow2-linux-b2fc059fa549fe6881d4c1f8d698b0f50bcd16ec.zip
usb: gadget: don't dereference g until after it has been null checked
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>
Diffstat (limited to 'drivers/tc')
0 files changed, 0 insertions, 0 deletions