Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1171159
| From | Stephan Mueller <smueller@chronox.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] crypto-jitterentropy: Delete unnecessary checks before the function call "kzfree" |
| Date | 2015-06-24 10:00 +0200 |
| Message-ID | <pENLd-3Bl-13@gated-at.bofh.it> (permalink) |
| References | <mSsDN-4wa-35@gated-at.bofh.it> <pEEeT-6KU-33@gated-at.bofh.it> <pENBw-3q6-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Am Mittwoch, 24. Juni 2015, 10:48:19 schrieb Dan Carpenter: Hi Dan, >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? The one C file should have no dependencies on any kernel header files. Thus, all links to kernel functions are wrapped. >Quite bad ones as well. What would you suggest to change? Thanks. Ciao Stephan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] crypto-jitterentropy: Delete unnecessary checks before the function call "kzfree" Dan Carpenter <dan.carpenter@oracle.com> - 2015-06-24 09:50 +0200
Re: [PATCH] crypto-jitterentropy: Delete unnecessary checks before the function call "kzfree" Stephan Mueller <smueller@chronox.de> - 2015-06-24 10:00 +0200
Re: [PATCH] crypto-jitterentropy: Delete unnecessary checks before the function call "kzfree" Dan Carpenter <dan.carpenter@oracle.com> - 2015-06-24 11:20 +0200
csiph-web