File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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
341341static int nft_tunnel_obj_geneve_init (const struct nlattr * attr ,
342342 struct nft_tunnel_opts * opts )
343343{
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 ) ;
345345 struct nlattr * tb [NFTA_TUNNEL_KEY_GENEVE_MAX + 1 ];
346346 int err , data_len ;
347347
@@ -625,7 +625,7 @@ static int nft_tunnel_opts_dump(struct sk_buff *skb,
625625 if (!inner )
626626 goto failure ;
627627 while (opts -> len > offset ) {
628- opt = (struct geneve_opt * )opts -> u .data + offset ;
628+ opt = (struct geneve_opt * )( opts -> u .data + offset ) ;
629629 if (nla_put_be16 (skb , NFTA_TUNNEL_KEY_GENEVE_CLASS ,
630630 opt -> opt_class ) ||
631631 nla_put_u8 (skb , NFTA_TUNNEL_KEY_GENEVE_TYPE ,
You can’t perform that action at this time.
0 commit comments