Thread (3 messages) flat view 3 messages, 3 authors, 2014-06-20

Re: [PATCH] crypto: caam: Introduce the use of the managed version of kzalloc

From: Marek Vasut <marex@denx.de>
Date: 2014-06-01 17:11:35
Also in: lkml

On Tuesday, May 27, 2014 at 08:25:48 PM, Himangi Saraogi wrote:
This patch moves data allocated using kzalloc to managed data allocated
using devm_kzalloc and cleans now unnecessary kfrees in probe and remove
functions.  Also, linux/device.h is added to make sure the devm_*()
routine declarations are unambiguously available. Earlier, in the probe
function ctrlpriv was leaked on the failure of ctrl = of_iomap(nprop, 0);
as well as on the failure of ctrlpriv->jrpdev = kzalloc(...); . These
two bugs have been fixed by the patch.

The following Coccinelle semantic patch was used for making the change:
Reviewed-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help