diff options
author | 2015-06-11 22:12:11 +0530 | |
---|---|---|
committer | 2015-07-06 12:34:08 -0500 | |
commit | b4c21f0bdd2c0cd5d5be1bb56f0a28dae5041eed (patch) | |
tree | 884d032fc4ab2bd382603b3970208544538298d1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: gadget: f_fs: do not set cancel function on synchronous {read,write} (diff) | |
download | wireguard-linux-b4c21f0bdd2c0cd5d5be1bb56f0a28dae5041eed.tar.xz wireguard-linux-b4c21f0bdd2c0cd5d5be1bb56f0a28dae5041eed.zip |
usb: gadget: composite: Fix NULL pointer dereference
commit f563d230903210acc ("usb: gadget: composite: add req_match method
to usb_function") accesses cdev->config even before set config
is invoked causing a NULL pointer dereferencing error while running
Lecroy Mass Storage Compliance test.
Fix it here by accessing cdev->config only if it is non NULL.
Fixes: commit f563d230903210acc ("usb: gadget: composite: add req_match
method to usb_function").
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions