]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/em_text.c
Enable CONFIG_GPIO_TWL4030=y
[linux-2.6-omap-h63xx.git] / net / sched / em_text.c
index d5cd86efb7d08fa8f3564f5edb89aee9557e5840..853c5ead87fd3691c4e699eebb9c6b34bc64f9aa 100644 (file)
@@ -118,11 +118,14 @@ static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m)
        conf.pattern_len = textsearch_get_pattern_len(tm->config);
        conf.pad = 0;
 
-       RTA_PUT_NOHDR(skb, sizeof(conf), &conf);
-       RTA_APPEND(skb, conf.pattern_len, textsearch_get_pattern(tm->config));
+       if (nla_put_nohdr(skb, sizeof(conf), &conf) < 0)
+               goto nla_put_failure;
+       if (nla_append(skb, conf.pattern_len,
+                      textsearch_get_pattern(tm->config)) < 0)
+               goto nla_put_failure;
        return 0;
 
-rtattr_failure:
+nla_put_failure:
        return -1;
 }