summaryrefslogtreecommitdiff
path: root/include/linux/zstd_errors.h
diff options
context:
space:
mode:
authorJonas Karlman <[email protected]>2023-07-30 22:59:55 +0000
committerKever Yang <[email protected]>2023-07-31 14:40:38 +0800
commit4412a2bf0b674d7438821531a0a19bbcd4b80eda (patch)
tree101a03e373518bac2acfae94392103aa05c00109 /include/linux/zstd_errors.h
parentbec51f3fb316b5a5ccedd7deb2e58ae6d7443cfa (diff)
usb: dwc3-generic: Return early when there is no child node
The current error check for device_find_first_child is not working as expected, the documentation for device_find_first_child mention: @devp: Returns first child device, or NULL if none Return: 0 Change to return early when there is no child node to avoid any possible null pointer dereference. Signed-off-by: Jonas Karlman <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Reviewed-by: Kever Yang <[email protected]>
Diffstat (limited to 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions