Re: [PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread David Miller
From: Santosh Shilimkar Date: Fri, 24 Feb 2017 08:49:19 -0800 > On 2/24/2017 1:28 AM, Zhu Yanjun wrote: >> 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 >> Cc: Junxiao Bi

Re: [PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread santosh.shilim...@oracle.com
On 2/24/17 11:12 AM, David Miller wrote: From: Santosh Shilimkar Date: Fri, 24 Feb 2017 08:49:19 -0800 On 2/24/2017 1:28 AM, Zhu Yanjun wrote: When the function register_netdevice_notifier fails, the memory allocated by kmem_cache_create should be freed by the function kmem_cache_destroy. Cc

Re: [PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread David Miller
From: Zhu Yanjun Date: Fri, 24 Feb 2017 04:28:01 -0500 > 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 > Cc: Junxiao Bi > Signed-off-by: Zhu Yanjun Applied, thank you.

Re: [PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread sowmini
On 02/24/2017 04:28 AM, Zhu Yanjun wrote: 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 Cc: Junxiao Bi Signed-off-by: Zhu Yanjun Acked-by: Sowmini Varadhan

Re: [PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread Santosh Shilimkar
On 2/24/2017 1:28 AM, Zhu Yanjun wrote: 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 Cc: Junxiao Bi Signed-off-by: Zhu Yanjun --- Minor nit with subject. s/rds/RDS: TCP: patch l

[PATCH 1/1] rds: fix memory leak error

2017-02-24 Thread Zhu Yanjun
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 Cc: Junxiao Bi Signed-off-by: Zhu Yanjun --- net/rds/tcp.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/n