mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
skb_header_pointer may return NULL. The current code dereference
its return values without a NULL check.
The fix inserts the checks to avoid NULL pointer dereferences.
Fixes: 202a8ff545 ("netfilter: add IPv6 segment routing header 'srh' match")
Signed-off-by: Kangjie Lu <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>