lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdb+GwB_VxfmPSwfc-1BfCs+fePSqnN3binY0xttb5p7xA@mail.gmail.com>
Date:	Tue, 12 Jun 2012 13:31:25 +0200
From:	Linus Walleij <linus.walleij@...aro.org>
To:	Devendra Naga <devendra.aaru@...il.com>,
	Dong Aisheng <B29396@...escale.com>,
	Shawn Guo <shawn.guo@...aro.org>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [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 <devendra.aaru@...il.com> 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 <devendra.aaru@...il.com>

Obviously correct so applied.

Dong, Shawn: any ACKs?

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ