Re: net: rnpgbe: Pass an expression directly in rnpgbe_rm_adapter()

From
Markus Elfring <hidden>
Date
2026-07-13 06:01:08
Also in
kernel-janitors, lkml
Reply to
Vadim Fedorenko, 2026-07-12
quoted
The address of a data structure member was determined before
a corresponding null pointer check in the implementation of
the function “rnpgbe_rm_adapter”.
The null check in rnpgbe_rm_adapter() looks more like defensive
programming,
This can be fine, can't it?

             which got into the code unnoticed.
Some patch reviews happened accordingly.

                                                pdev will not exist if
netdev is not allocated, where mucse is netdev private data.
Would you like to reconsider the relevance of another null pointer check?

Regards,
Markus
Thread (23 messages) 23 messages, 6 authors, last reply 2026-07-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help