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

From: Jakub Kicinski <[email-masked]>
Date: Thu, 12 Mar 2026 19:38:46 -0700

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.