diff options
| author | Uwe Kleine-König <[email protected]> | 2024-04-05 05:58:10 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-04-05 06:08:37 +0000 |
| commit | d464dac47260a33add5a206fd3289ec1216e8435 (patch) | |
| tree | d72f44702a97c6ca6038555a34cab8537e0360f8 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | usb: Disable USB3 LPM at shutdown (diff) | |
| download | kernel-d464dac47260a33add5a206fd3289ec1216e8435.tar.gz kernel-d464dac47260a33add5a206fd3289ec1216e8435.zip | |
usb: gadget: fsl: Initialize udc before using it
fsl_ep_queue() is only called by usb_ep_queue() (as ep->ops->queue()).
So _ep isn't NULL.
As ep->ops->queue = fsl_ep_queue, the ep was initialized by
struct_ep_setup() and so ep->udc isn't NULL either.
Drop the check for _ep being NULL and assign udc earlier to prevent
following an uninitialized pointer in the two dev_vdbg()s in lines 878
and 882. This fixes a compiler warning when using clang and
CONFIG_USB_GADGET_VERBOSE=y.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Fixes: 6025f20f16c2 ("usb: gadget: fsl-udc: Replace custom log wrappers by dev_{err,warn,dbg,vdbg}")
Signed-off-by: Uwe Kleine-König <[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/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
