From: Ying Xue Date: Wed, 15 Jan 2014 02:23:43 +0000 (+0800) Subject: caif: __dev_get_by_index instead of dev_get_by_index to find interface X-Git-Tag: v3.14-rc1~94^2~179^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a74e9426948cce451af0433c69a120178948cb03;p=pandora-kernel.git 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 Signed-off-by: Ying Xue Signed-off-by: David S. Miller --- Reading git-diff-tree failed