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

af_unix: call proto_unregister() in the error path in af_unix_init()



If register unix_stream_proto returns error, unix_dgram_proto needs
be unregistered.

Fixes: 94531cfc ("af_unix: Add unix_stream_proto for sockmap")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 526682b4
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