diff options
author | 2025-02-20 13:03:14 +0100 | |
---|---|---|
committer | 2025-02-20 13:29:37 +0100 | |
commit | c783e1258f29c5caac9eea0aea6b172870f1baf8 (patch) | |
tree | 1ec1806f48aff1ca2859a9f7c08485a60c3b268b /scripts/generate_rust_analyzer.py | |
parent | usb: typec: ucsi: increase timeout for PPM reset operations (diff) | |
download | linux-rng-c783e1258f29c5caac9eea0aea6b172870f1baf8.tar.xz linux-rng-c783e1258f29c5caac9eea0aea6b172870f1baf8.zip |
usb: gadget: Fix setting self-powered state on suspend
cdev->config might be NULL, so check it before dereferencing.
CC: stable <stable@kernel.org>
Fixes: 40e89ff5750f ("usb: gadget: Set self-powered based on MaxPower and bmAttributes")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/20250220120314.3614330-1-m.szyprowski@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions