Re: [PATCH net v2] ipv6: sr: Add NULL check for idev in seg6_hmac_validate_skb

From: Jakub Kicinski

Date: Thu Mar 12 2026 - 22:38:59 EST


On Fri, 13 Mar 2026 10:26:34 +0800 Minhong He wrote:
> In seg6_hmac_validate_skb(), the pointer returned by __in6_dev_get()
> can be NULL if the network device lacks proper IPv6 initialization
> or is being torn down. Add a NULL check to avoid potential NULL pointer
> dereference in subsequent code.

next time please start a new thread instead of replying to the previous
posting please.