Re: [PATCH] bnxt_en: Fix call to hardware monitoring event handler

Kalesh Anakkur Purayil <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <CAH-L+nMkXGv7P6=x3oWFfqa0vscdqT5sN1B8wcjy=7JPR=R5sQ@mail.gmail.com>
On Fri, Aug 21, 2026 at 10:15 AM Guenter Roeck <[email protected]> wrote:
>
> The first parameter of hwmon_notify_event() is supposed to be the hardware
> monitoring device. The bnxt driver calls it with the platform device as
> first parameter instead. This API break results in undefined behavior and
> may result in a crash.
>
> Pass the hardware monitoring device as parameter instead to fix the
> problem.
>
> Fixes: a19b4801457b0 ("bnxt_en: Event handler for Thermal event")
> Cc: Kalesh AP <[email protected]>
> Signed-off-by: Guenter Roeck <[email protected]>

Thank you for the fix, LGTM!

Reviewed-by: Kalesh AP <[email protected]>

-- 
Regards,
Kalesh AP
smime.p7s (application/pkcs7-signature, 5.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.