Fixed compile time warning by adding upstream patches 64/141164/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_base accepted/tizen_7.0_base_hotfix accepted/tizen_unified tizen tizen_4.0_tv tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5_base tizen_7.0_base_hotfix accepted/tizen/4.0/unified/20170816.012551 accepted/tizen/4.0/unified/20170828.222837 accepted/tizen/5.0/unified/20181102.030405 accepted/tizen/5.5/unified/20191031.011715 accepted/tizen/5.5/unified/mobile/hotfix/20201027.074205 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100518 accepted/tizen/6.0/unified/20201030.110302 accepted/tizen/6.0/unified/hotfix/20201102.234451 accepted/tizen/6.0/unified/hotfix/20201103.050859 accepted/tizen/6.5/base/20211028.060225 accepted/tizen/7.0/base/20221116.025912 accepted/tizen/7.0/base/hotfix/20221116.055321 accepted/tizen/base/20210825.055300 accepted/tizen/base/20221115.103748 accepted/tizen/unified/20170803.075510 submit/tizen/20170728.113040 submit/tizen/20170803.034157 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 submit/tizen_6.5_base/20211028.134101 submit/tizen_base/20210824.032556 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release
authorSaurav Babu <saurav.babu@samsung.com>
Fri, 28 Jul 2017 09:48:23 +0000 (15:18 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Fri, 28 Jul 2017 09:48:23 +0000 (15:18 +0530)
Below upstream patches were added:
https://github.com/tgraf/libnl/commit/8222519f
 Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test

 Fix the always false if (a->rt_nr_nh != a->rt_nr_nh) test and compare
 properly the a and b structs

https://github.com/tgraf/libnl/commit/9426d03e
 tbf: fix false missing attr

 Fix false missing attribute in tbf_msg_fill() when applying a tbf
 qdisc.

Change-Id: Ia58b09d7e3eb557b6649c9bf1db6328511433c9f
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
lib/route/route_obj.c
lib/route/sch/tbf.c

index 7f26bfd..6f50c3a 100644 (file)
@@ -403,7 +403,7 @@ static int route_compare(struct nl_object *_a, struct nl_object *_b,
                diff |= ROUTE_DIFF(FLAGS,
                          (a->rt_flags ^ b->rt_flags) & b->rt_flag_mask);
        } else {
-               if (a->rt_nr_nh != a->rt_nr_nh)
+               if (a->rt_nr_nh != b->rt_nr_nh)
                        goto nh_mismatch;
 
                /* search for a dup in each nh of a */
index eccaf70..161d564 100644 (file)
@@ -166,7 +166,7 @@ static struct nl_msg *tbf_get_opts(struct rtnl_qdisc *qdisc)
        if (!tbf)
                return NULL;
 
-       if (!(tbf->qt_mask & required) != required)
+       if ((tbf->qt_mask & required) != required)
                return NULL;
 
        opts.limit = tbf->qt_limit;