Re: [PATCH 1/2] scripts/coccinelle: catch freeing cryptographic structures via kfree

2014-11-17 Thread Konstantin Khlebnikov
On 2014-11-17 18:30, Julia Lawall wrote: On Mon, 17 Nov 2014, Konstantin Khlebnikov wrote: Structures allocated by crypto_alloc_* must be freed using crypto_free_*. Signed-off-by: Konstantin Khlebnikov --- scripts/coccinelle/free/crypto_free.cocci | 45 + 1

Re: [PATCH 1/2] scripts/coccinelle: catch freeing cryptographic structures via kfree

2014-11-17 Thread Julia Lawall
On Mon, 17 Nov 2014, Konstantin Khlebnikov wrote: > Structures allocated by crypto_alloc_* must be freed using crypto_free_*. > > Signed-off-by: Konstantin Khlebnikov > --- > scripts/coccinelle/free/crypto_free.cocci | 45 > + > 1 file changed, 45 insertions(+) >

[PATCH 1/2] scripts/coccinelle: catch freeing cryptographic structures via kfree

2014-11-17 Thread Konstantin Khlebnikov
Structures allocated by crypto_alloc_* must be freed using crypto_free_*. Signed-off-by: Konstantin Khlebnikov --- scripts/coccinelle/free/crypto_free.cocci | 45 + 1 file changed, 45 insertions(+) create mode 100644 scripts/coccinelle/free/crypto_free.cocci diff