Commit 28c391a1 authored by Peter Chen's avatar Peter Chen Committed by Ben Hutchings
Browse files

usb: gadget: composite: fix dereference after null check coverify warning



commit c526c62d upstream.

cdev->config is checked for null pointer at above code, so cdev->config
might be null, fix it by adding null pointer check.

Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 6b3ddae9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment