Skip to content
Commit b6b19a71 authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller
Browse files

ptp: free 'vclock_index' in ptp_clock_release()



'vclock_index' is accessed from sysfs, it shouled be freed
in release function, so move it from ptp_clock_unregister()
to ptp_clock_release().

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf6abf34
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