]> git.baikalelectronics.ru Git - kernel.git/commit
rds: memory leak in __rds_conn_create()
authorHangyu Hua <hbh25y@gmail.com>
Tue, 14 Dec 2021 10:46:59 +0000 (18:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Dec 2021 12:51:52 +0000 (12:51 +0000)
commit85f55cacb78ac7ba2572adc53a7aadd86d971b7e
tree6daeaf3e8bbad3ded46a2b797e9c946b4f76e5b9
parenta5acd1100786d1df8c531e6d263fad9b11bf7bc2
rds: memory leak in __rds_conn_create()

__rds_conn_create() did not release conn->c_path when loop_trans != 0 and
trans->t_prefer_loopback != 0 and is_outgoing == 0.

Fixes: 4fae91d8f412 ("RDS tcp loopback connection can hang")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: Sharath Srinivasan <sharath.srinivasan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c