]> git.baikalelectronics.ru Git - kernel.git/commit
rds: fix memory leak error
authorZhu Yanjun <yanjun.zhu@oracle.com>
Fri, 24 Feb 2017 09:28:01 +0000 (04:28 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Feb 2017 19:13:14 +0000 (14:13 -0500)
commit5fc32b7c879a635243803a7b1cafc42cc5f99160
treeecf819039abb0ac6715ae135ca1f838ed0a0b5b3
parent3f89ad1063db9b05925cc8c50cab4a07c58ce031
rds: fix memory leak error

When the function register_netdevice_notifier fails, the memory
allocated by kmem_cache_create should be freed by the function
kmem_cache_destroy.

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Acked-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/tcp.c