Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
af_unix: call proto_unregister() in the error path in af_unix_init()
[ Upstream commit 73e341e ] If register unix_stream_proto returns error, unix_dgram_proto needs be unregistered. Fixes: 94531cf ("af_unix: Add unix_stream_proto for sockmap") Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information