Re: [PATCH] crypto: ti - Use list_first_entry_or_null() in dthe_get_dev()

From: Mert Seftali

Date: Fri Jul 03 2026 - 10:09:55 EST


On Fri, 3 Jul 2026, Herbert Xu wrote:
> This only fixes the symptom of the problem. But the root goes deeper.
>
> The main issue is that the device can go away in the middle of an
> operation. [...]

Yeah agreed. my patch only covers the empty-list case the test robot
flagged but it doesn't touch the lifetime problem at all.

Doing that one properly is a much bigger change than a one-liner though, and
i'd rather take the time to understand the driver's lifecycle and do it right
than send you a half-baked fix. So, is the list_first_entry_or_null() change
still worth taking as a small correctness fix on its own or would you rather
drop it and sort the lifetime issue as a whole?

Thanks,
Mert