Skip to content
Permalink
Browse files

Fix build error on 4.12

  • Loading branch information...
Lochnair committed Jul 15, 2017
1 parent 8d14c88 commit bd426aa8ac3341668087c1753658f79e96d32880
Showing with 5 additions and 1 deletion.
  1. +5 −1 sch_cake.c
@@ -1684,8 +1684,12 @@ static int cake_change(struct Qdisc *sch, struct nlattr *opt)

if (!opt)
return -EINVAL;

#if KERNEL_VERSION(4,12,0) > LINUX_VERSION_CODE
err = nla_parse_nested(tb, TCA_CAKE_MAX, opt, cake_policy);
#else
err = nla_parse_nested(tb, TCA_CAKE_MAX, opt, cake_policy, NULL);
#endif

if (err < 0)
return err;

0 comments on commit bd426aa

Please sign in to comment.
You can’t perform that action at this time.