Commit c2e1968
committed
af_unix: call proto_unregister() in the error path in af_unix_init()
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2164865
Upstream Status: net.git commit 73e341e
commit 73e341e
Author: Yang Yingliang <yangyingliang@huawei.com>
Date: Thu Dec 8 23:01:58 2022 +0800
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: 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: Davide Caratti <dcaratti@redhat.com>1 parent a3674bb commit c2e1968
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3512 | 3512 | | |
3513 | 3513 | | |
3514 | 3514 | | |
| 3515 | + | |
3515 | 3516 | | |
3516 | 3517 | | |
3517 | 3518 | | |
| |||
0 commit comments