[lvc-project] [PATCH] thunderbolt: handle possible NULL pointer from get_device()
Dmitry Antipov
dmantipov at yandex.ru
Fri Jun 9 11:05:59 MSK 2023
On 6/9/23 10:46, Greg KH wrote:
> Again, how did you test this?
Did you look at the patch header? For that particular case, the static
analysis tool complains that the value returned by get_device() is most
likely should be checked just because it is checked on a lot of other
code paths. Usually it may be a good precaution to handle the very rare
and unexpected errors; again, if you're sure that this is not the case,
just disregard it.
Dmitry
More information about the lvc-project
mailing list