diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-08-07 18:55:00 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-08-13 16:55:48 +0200 |
| commit | 186e8f2bdba551f3ae23396caccd452d985c23e3 (patch) | |
| tree | 5ea9de49ab034eb1db36a83027e486ecf8ff985d /scripts/lib/kdoc/kdoc_parser.py | |
| parent | aeb0169217ebf91b65927c7ce5f27318b2059aa4 (diff) | |
usb: host: max3421-hcd: Fix error pointer dereference in probe cleanup
The kthread_run() function returns error pointers so the
max3421_hcd->spi_thread pointer can be either error pointers or NULL.
Check for both before dereferencing it.
Fixes: 05dfa5c9bc37 ("usb: host: max3421-hcd: fix "spi_rd8" uses dynamic stack allocation warning")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/aJTMVAPtRe5H6jug@stanley.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions
