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
@@ -628,7 +628,7 @@ static int nft_tunnel_opts_dump(struct sk_buff *skb,
628628 if (!inner )
629629 goto failure ;
630630 while (opts -> len > offset ) {
631- opt = (struct geneve_opt * )opts -> u .data + offset ;
631+ opt = (struct geneve_opt * )( opts -> u .data + offset ) ;
632632 if (nla_put_be16 (skb , NFTA_TUNNEL_KEY_GENEVE_CLASS ,
633633 opt -> opt_class ) ||
634634 nla_put_u8 (skb , NFTA_TUNNEL_KEY_GENEVE_TYPE ,
You can’t perform that action at this time.
0 commit comments