commit | 54a4b05cd281a352d803417a98a72878fb0802cf | [log] [tgz] |
---|---|---|
author | Yang Yingliang <yangyingliang@huawei.com> | Fri Feb 14 10:30:41 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Fri Feb 14 00:15:20 2014 -0500 |
tree | f75291053c03b191ab3d8bb5ef51ca57f47e7de0 | |
parent | d4f2fa6ad61ec1db713569a179183df4d0fc6ae7 [diff] |
sch_netem: return errcode before setting params get_dist_table() and get_loss_clg() may be failed. These two functions should be called after setting the members of qdisc_priv(sch), or it will break the old settings while either of them is failed. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>