From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Wed, 24 Jun 2015 07:48:19 +0000 Subject: Re: [PATCH] crypto-jitterentropy: Delete unnecessary checks before the function call "kzfree" Message-Id: <20150624074819.GR28762@mwanda> List-Id: References: <5307CAA2.8060406@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <5589CD95.9080508@users.sourceforge.net> <3056833.hq1kqBmzGz@myon.chronox.de> In-Reply-To: <3056833.hq1kqBmzGz@myon.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Stephan Mueller Cc: SF Markus Elfring , "David S. Miller" , Herbert Xu , linux-crypto@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall The other NULL assignment isn't useful either. Also If "entropy_collector" is NULL then we would oops calling kzfree(entropy_collector->mem); ^^^^^^^^^^^^^^^^^^^^^^ Dereference. I don't understand the patch that you sent. We shouldn't be introducing jent_zalloc() or jent_zfree(). Why are you adding abstractions there? Quite bad ones as well. regards, dan carpenter