File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ static const struct nla_policy nft_tunnel_opts_geneve_policy[NFTA_TUNNEL_KEY_GEN
311
311
static int nft_tunnel_obj_geneve_init (const struct nlattr * attr ,
312
312
struct nft_tunnel_opts * opts )
313
313
{
314
- struct geneve_opt * opt = (struct geneve_opt * )opts -> u .data + opts -> len ;
314
+ struct geneve_opt * opt = (struct geneve_opt * )( opts -> u .data + opts -> len ) ;
315
315
struct nlattr * tb [NFTA_TUNNEL_KEY_GENEVE_MAX + 1 ];
316
316
int err , data_len ;
317
317
@@ -592,7 +592,7 @@ static int nft_tunnel_opts_dump(struct sk_buff *skb,
592
592
if (!inner )
593
593
goto failure ;
594
594
while (opts -> len > offset ) {
595
- opt = (struct geneve_opt * )opts -> u .data + offset ;
595
+ opt = (struct geneve_opt * )( opts -> u .data + offset ) ;
596
596
if (nla_put_be16 (skb , NFTA_TUNNEL_KEY_GENEVE_CLASS ,
597
597
opt -> opt_class ) ||
598
598
nla_put_u8 (skb , NFTA_TUNNEL_KEY_GENEVE_TYPE ,
You can’t perform that action at this time.
0 commit comments