commit | 5af28de35342f630a91061e25cc976a01b7ca6c4 | [log] [tgz] |
---|---|---|
author | Ying Xue <ying.xue@windriver.com> | Wed Jan 15 10:23:44 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 14 18:50:47 2014 -0800 |
tree | 6601cac6792af4d03ff3913f16fc73ecdbaa8c29 | |
parent | a74e9426948cce451af0433c69a120178948cb03 [diff] |
can: use __dev_get_by_index instead of dev_get_by_index to find interface As cgw_create_job() is always under rtnl_lock protection, __dev_get_by_index() instead of dev_get_by_index() should be used to find interface handler in it having us avoid to change interface reference counter. Cc: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: Ying Xue <ying.xue@windriver.com> Acked-by: Oliver Hartkopp <socketcan@hartkopp.net> Signed-off-by: David S. Miller <davem@davemloft.net>