From b870441f58bc8076de5b97cb74de5dcd2a9fd84d Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Sun, 10 Jun 2018 12:29:58 +0200 Subject: [PATCH] rtnl_link: fix incorrect variable names in ARRAY_SIZE arguments * rtnl_link.c (decode_nla_linkinfo_data_bridge): Change rtnl_ifla_info_data_bridge_attrs to ifla_info_data_bridge_nla_decoders in ARRAY_SIZE call. (decode_nla_linkinfo_data_tun): Change rtnl_ifla_info_data_tun_attrs to ifla_info_data_tun_nla_decoders in ARRAY_SIZE call. Fixes: v4.22-328-g1e6d5a8 "rtnl_link: implement IFLA_INFO_DATA for bridges" Fixes: v4.22-329-g4eab3a4 "rtnl_link: implement IFLA_INFO_DATA for tun devices" --- rtnl_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtnl_link.c b/rtnl_link.c index 24eec685..e0cc2af0 100644 --- a/rtnl_link.c +++ b/rtnl_link.c @@ -340,7 +340,7 @@ decode_nla_linkinfo_data_bridge(struct tcb *const tcp, { decode_nlattr(tcp, addr, len, rtnl_ifla_info_data_bridge_attrs, "IFLA_BR_???", ifla_info_data_bridge_nla_decoders, - ARRAY_SIZE(rtnl_ifla_info_data_bridge_attrs), + ARRAY_SIZE(ifla_info_data_bridge_nla_decoders), opaque_data); return true; @@ -384,7 +384,7 @@ decode_nla_linkinfo_data_tun(struct tcb *const tcp, { decode_nlattr(tcp, addr, len, rtnl_ifla_info_data_tun_attrs, "IFLA_TUN_???", ifla_info_data_tun_nla_decoders, - ARRAY_SIZE(rtnl_ifla_info_data_tun_attrs), + ARRAY_SIZE(ifla_info_data_tun_nla_decoders), opaque_data); return true; -- 2.40.0