diff options
author | Ying Xue <ying.xue@windriver.com> | 2014-01-15 03:23:38 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-01-15 03:50:46 +0100 |
commit | ebd93a7daf40d61b994b9928dd7bf26e0dcca10d (patch) | |
tree | 5d650b03e979294e95b51718fd0a14dc19a0181b /net/dcb/dcbnl.c | |
parent | bonding: use __dev_get_by_name instead of dev_get_by_name to find interface (diff) | |
download | linux-ebd93a7daf40d61b994b9928dd7bf26e0dcca10d.tar.xz linux-ebd93a7daf40d61b994b9928dd7bf26e0dcca10d.zip |
eql: use __dev_get_by_name instead of dev_get_by_name to find interface
The following call chain indicates that eql_ioctl(), eql_enslave(),
eql_emancipate(), eql_g_slave_cfg() and eql_s_slave_cfg() are
protected under rtnl_lock. So if we use __dev_get_by_name() instead
of dev_get_by_name() to find interface handlers in them, this would
help us avoid to change interface reference counters.
dev_ioctl()
rtnl_lock()
dev_ifsioc()
eql_ioctl()
eql_enslave()
eql_emancipate()
eql_g_slave_cfg()
eql_s_slave_cfg()
rtnl_unlock()
Additionally we also change their return values from -EINVAL to
-ENODEV in case that interfaces are no found.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dcb/dcbnl.c')
0 files changed, 0 insertions, 0 deletions