Re: [PATCH] crypto: arm64: Use PTR_ERR_OR_ZERO rather than its implementation.

2019-09-04 Thread zhong jiang
On 2019/9/4 18:25, Will Deacon wrote: > On Tue, Sep 03, 2019 at 02:54:16PM +0800, zhong jiang wrote: >> PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to >> use it directly. hence just replace it. >> >> Signed-off-by: zhong jiang >> --- >

[PATCH] crypto: arm64: Use PTR_ERR_OR_ZERO rather than its implementation.

2019-09-02 Thread zhong jiang
PTR_ERR_OR_ZERO contains if(IS_ERR(...)) + PTR_ERR. It is better to use it directly. hence just replace it. Signed-off-by: zhong jiang --- arch/arm64/crypto/aes-glue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm64/crypto/aes-glue.c b/arch/arm64/crypto/aes

Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-11-12 Thread zhong jiang
On 2018/11/8 3:49, Dave Wysochanski wrote: > On Tue, 2018-10-30 at 21:58 +0800, zhong jiang wrote: >> On 2018/10/30 21:06, Benjamin Coddington wrote: >>> Hi zhong jiang, >>> >>> Try asking in linux-nfs.. but I'll also note that 3.10-stable may >>>

Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-11-01 Thread zhong jiang
On 2018/10/30 22:03, Benjamin Coddington wrote: > On 30 Oct 2018, at 9:58, zhong jiang wrote: > >> On 2018/10/30 21:06, Benjamin Coddington wrote: >>> Hi zhong jiang, >>> >>> Try asking in linux-nfs.. but I'll also note that 3.10-stable may be >>&

Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-10-30 Thread zhong jiang
On 2018/10/30 22:03, Benjamin Coddington wrote: > On 30 Oct 2018, at 9:58, zhong jiang wrote: > >> On 2018/10/30 21:06, Benjamin Coddington wrote: >>> Hi zhong jiang, >>> >>> Try asking in linux-nfs.. but I'll also note that 3.10-stable may be >>&

Re: [Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-10-30 Thread zhong jiang
On 2018/10/30 21:06, Benjamin Coddington wrote: > Hi zhong jiang, > > Try asking in linux-nfs.. but I'll also note that 3.10-stable may be missing > a number of fixes to leaks in the NFS GSS code. > > I can see a more than a few fixes to memory leaks with: > git log

[Qestion] Lots of memory leaks when mounting and unmounting nfs client to server continuously.

2018-10-30 Thread zhong jiang
/0x90 [123420.989943] [] ? kthread_create_on_node+0x140/0x140 I am unfamiliar with crypto. I will be appreciated if you could give me some suggestion. Thanks, zhong jiang

[PATCH] crypto: cavium: remove redundant null pointer check before kfree

2018-09-21 Thread zhong jiang
kfree has taken the null pointer into account. hence it is safe to remove the redundant null pointer check before kfree. Signed-off-by: zhong jiang --- drivers/crypto/cavium/cpt/cptvf_reqmanager.c | 20 +--- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH] crypto : chtls: remove redundant null pointer check before kfree_skb

2018-09-20 Thread zhong jiang
kfree_skb has taken the null pointer into account. hence it is safe to remove the redundant null pointer check before kfree_skb. Signed-off-by: zhong jiang --- drivers/crypto/chelsio/chtls/chtls_cm.c | 3 +-- drivers/crypto/chelsio/chtls/chtls_main.c | 3 +-- 2 files changed, 2 insertions