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 @@ -341,7 +341,7 @@ static const struct nla_policy nft_tunnel_opts_geneve_policy[NFTA_TUNNEL_KEY_GEN
341
341
static int nft_tunnel_obj_geneve_init (const struct nlattr * attr ,
342
342
struct nft_tunnel_opts * opts )
343
343
{
344
- struct geneve_opt * opt = (struct geneve_opt * )opts -> u .data + opts -> len ;
344
+ struct geneve_opt * opt = (struct geneve_opt * )( opts -> u .data + opts -> len ) ;
345
345
struct nlattr * tb [NFTA_TUNNEL_KEY_GENEVE_MAX + 1 ];
346
346
int err , data_len ;
347
347
@@ -625,7 +625,7 @@ static int nft_tunnel_opts_dump(struct sk_buff *skb,
625
625
if (!inner )
626
626
goto failure ;
627
627
while (opts -> len > offset ) {
628
- opt = (struct geneve_opt * )opts -> u .data + offset ;
628
+ opt = (struct geneve_opt * )( opts -> u .data + offset ) ;
629
629
if (nla_put_be16 (skb , NFTA_TUNNEL_KEY_GENEVE_CLASS ,
630
630
opt -> opt_class ) ||
631
631
nla_put_u8 (skb , NFTA_TUNNEL_KEY_GENEVE_TYPE ,
You can’t perform that action at this time.
0 commit comments