projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'mm-slub-5.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka...
[linux-2.6-microblaze.git]
/
net
/
netfilter
/
nfnetlink_osf.c
diff --git
a/net/netfilter/nfnetlink_osf.c
b/net/netfilter/nfnetlink_osf.c
index
e8f8875
..
0fa2e20
100644
(file)
--- a/
net/netfilter/nfnetlink_osf.c
+++ b/
net/netfilter/nfnetlink_osf.c
@@
-186,6
+186,8
@@
static const struct tcphdr *nf_osf_hdr_ctx_init(struct nf_osf_hdr_ctx *ctx,
ctx->optp = skb_header_pointer(skb, ip_hdrlen(skb) +
sizeof(struct tcphdr), ctx->optsize, opts);
+ if (!ctx->optp)
+ return NULL;
}
return tcp;