[lkml]   [2012]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/2] pinctrl: pinctrl-mxs: Take care of frees if the kzalloc fails
On Sat, Jun 9, 2012 at 2:01 PM, Devendra Naga <> wrote:

> if there is no purecfg , the group pointer is allocated using kzalloc and if it
> fails to allocate, we wont free the new_map,
> if config is true, we call kmemdup and if it
> fails to do so we wont free the allocated group if there is no purecfg.
> fix this by doing the frees of new_map pointer and group pointers.
> Signed-off-by: Devendra Naga <>

Obviously correct so applied.

Dong, Shawn: any ACKs?

Linus Walleij

 \ /
  Last update: 2012-06-12 14:41    [W:0.038 / U:2.948 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site