aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2021-01-23 14:25:00 +0000
committerGreg Kroah-Hartman <[email protected]>2021-02-05 10:27:18 +0100
commitae2938c358430beab098fbfac843532c25b36372 (patch)
treeb046c47663acd81e2a60887c165c58202bcaaf0c /tools/perf/scripts/python
parent0eaa1a3714db34a59ce121de5733c3909c529463 (diff)
usb: musb: Fix NULL check on struct musb_request field
The 'request' variable is a pointer to the 'request' field of the struct musb_request 'req' pointer. It only worked until now because the 'request' field is the first one in the musb_request structure, but as soon as that changes, the check will be invalid. Fix it preventively by doing the NULL-check on the 'req' pointer instead. Suggested-by: Maarten ter Huurne <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Paul Cercueil <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions