]> git.baikalelectronics.ru Git - kernel.git/commit
net_sched: fix error return code in fw_change_attrs()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jan 2014 01:53:20 +0000 (09:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jan 2014 03:12:03 +0000 (19:12 -0800)
commit731d19222909b4ea680e4b4e6e6bbabfe0507e76
tree5d95917e06b150911e3d189f9649e5bf03b33554
parent43bdfafc3170886b1a2283b84ff687b6f0a4c597
net_sched: fix error return code in fw_change_attrs()

The error code was not set if change indev fail, so the error
condition wasn't reflected in the return value. Fix to return a
negative error code from this error handling case instead of 0.

Fixes: 23c43b3ddbb5 ('net_sched: optimize tcf_match_indev()')
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_fw.c