projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d5e8d
)
RDS: fix rds_tcp_init() error path
author
Vegard Nossum
<
[email protected]
>
Sun, 3 Jul 2016 08:54:54 +0000
(10:54 +0200)
committer
David S. Miller
<
[email protected]
>
Mon, 4 Jul 2016 23:09:49 +0000
(16:09 -0700)
If register_pernet_subsys() fails, we shouldn't try to call
unregister_pernet_subsys().
Fixes: 467fa15356 ("RDS-TCP: Support multiple RDS-TCP listen endpoints, one per netns.")
Cc:
[email protected]
Cc: Sowmini Varadhan <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
Signed-off-by: Vegard Nossum <
[email protected]
>
Acked-by: Sowmini Varadhan <
[email protected]
>
Acked-by: Santosh Shilimkar <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/rds/tcp.c
patch
|
blob
|
history
diff --git
a/net/rds/tcp.c
b/net/rds/tcp.c
index 74ee126a6fe6c00ce8bce45053ec2b8805fc222e..c8a7b4c90190cafe8dc6fefe3e0a1935c558c357 100644
(file)
--- a/
net/rds/tcp.c
+++ b/
net/rds/tcp.c
@@
-616,7
+616,7
@@
static int rds_tcp_init(void)
ret = rds_tcp_recv_init();
if (ret)
- goto out_
slab
;
+ goto out_
pernet
;
ret = rds_trans_register(&rds_tcp_transport);
if (ret)
@@
-628,8
+628,9
@@
static int rds_tcp_init(void)
out_recv:
rds_tcp_recv_exit();
-out_
slab
:
+out_
pernet
:
unregister_pernet_subsys(&rds_tcp_net_ops);
+out_slab:
kmem_cache_destroy(rds_tcp_conn_slab);
out:
return ret;