]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
pkt_sched: fix error return code in fw_change_attrs()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 17 Apr 2013 16:49:10 +0000 (16:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2013 21:34:53 +0000 (17:34 -0400)
commitcb95ec6261a205bde6451b972fbd6e1581608cae
tree9b1d579fab54f5759dab9386f3ba42523f20f688
parente15465e1808542743627f13d1c0cbb7eacc82b83
pkt_sched: fix error return code in fw_change_attrs()

Fix to return -EINVAL when tb[TCA_FW_MASK] is set and head->mask != 0xFFFFFFFF
instead of 0 (ifdef CONFIG_NET_CLS_IND and tb[TCA_FW_INDEV]), as done elsewhere
in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_fw.c