Commit 0e72f55f authored by Florian Westphal's avatar Florian Westphal Committed by Pablo Neira Ayuso

netfilter: snmp: avoid stack size warning

net/ipv4/netfilter/nf_nat_snmp_basic.c:1158:1: warning: the frame size
of 1160 bytes is larger than 1024 bytes
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 039b40ee
......@@ -827,8 +827,8 @@ static unsigned char snmp_object_decode(struct asn1_ctx *ctx,
return 1;
}
static unsigned char snmp_request_decode(struct asn1_ctx *ctx,
struct snmp_request *request)
static unsigned char noinline_for_stack
snmp_request_decode(struct asn1_ctx *ctx, struct snmp_request *request)
{
unsigned int cls, con, tag;
unsigned char *end;
......@@ -920,8 +920,8 @@ static inline void mangle_address(unsigned char *begin,
}
}
static unsigned char snmp_trap_decode(struct asn1_ctx *ctx,
struct snmp_v1_trap *trap,
static unsigned char noinline_for_stack
snmp_trap_decode(struct asn1_ctx *ctx, struct snmp_v1_trap *trap,
const struct oct1_map *map,
__sum16 *check)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment