Skip to content
Commit 5af28de3 authored by Ying Xue's avatar Ying Xue Committed by David S. Miller
Browse files

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: default avatarYing Xue <ying.xue@windriver.com>
Acked-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a74e9426
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment