diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-14 16:18:28 +0000 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-11-28 13:04:50 +0200 |
commit | b2fc059fa549fe6881d4c1f8d698b0f50bcd16ec (patch) | |
tree | 179ab5772ba2175236fce42963f1e99fd8f3a1ae /scripts/mksysmap | |
parent | 593e789fd4421635bde09398b8a8fb510b18414a (diff) |
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 'scripts/mksysmap')
0 files changed, 0 insertions, 0 deletions