diff options
| author | Mark Brown <broonie@kernel.org> | 2026-10-19 19:23:44 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-19 19:23:44 +0100 |
| commit | 2dee91ee94eec85d09c13c7ca83e3005906d3732 (patch) | |
| tree | 16b3ca8de599279fa3c4ed9be5d60c1c422e00f6 /include/net/ip.h | |
| parent | f52260f49b107fddbcf7c75f9cf2347a5031f0f7 (diff) | |
| parent | d5a821f66047c2effd06147b84775f9b2ce0f4aa (diff) | |
regmap: Merge up fixes
The main thing here is a fix for lockdep warnings with MMIO regmaps that
use a raw spinlock and a cache, some other lockdep fixes we'd done for
the benefit of the maple tree on sleeping buses meant that we were doing
allocations for those MMIO regmaps under a raw spinlock. While fixing
that Michael Reeves also noticed that the debugfs files were briefly
available without the cache structures backing them.
There's also a fix for interrupt freeing on error in regmap-irq which
had been hanging around because it's not super urgent.
Diffstat (limited to 'include/net/ip.h')
| -rw-r--r-- | include/net/ip.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h index 6f602df72ee6..d07c2c573024 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -74,6 +74,13 @@ static inline unsigned int ip_hdrlen(const struct sk_buff *skb) return ip_hdr(skb)->ihl * 4; } +static inline int ip_check_csum_start(const struct sk_buff *skb) +{ + if (unlikely(skb->csum_start < skb->network_header + ip_hdrlen(skb))) + return -EINVAL; + return 0; +} + struct ipcm_cookie { struct sockcm_cookie sockc; __be32 addr; |
