aboutsummaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2014-01-15 10:23:43 +0800
committerDavid S. Miller <davem@davemloft.net>2014-01-14 18:50:47 -0800
commita74e9426948cce451af0433c69a120178948cb03 (patch)
treeff913e11bda927f62166dbb7afd55202abca3710 /net/can
parentbatman-adv: use __dev_get_by_index instead of dev_get_by_index to find interface (diff)
downloadlinux-dev-a74e9426948cce451af0433c69a120178948cb03.tar.xz
linux-dev-a74e9426948cce451af0433c69a120178948cb03.zip
caif: __dev_get_by_index instead of dev_get_by_index to find interface
The following call chains indicate that chnl_net_open() is under rtnl_lock protection as __dev_open() is protected by rtnl_lock. So if __dev_get_by_index() instead of dev_get_by_index() is used to find interface handler in it, this would help us avoid to change interface reference counter. __dev_open() chnl_net_open() Cc: Dmitry Tarnyagin <dmitry.tarnyagin@lockless.no> Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions