[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <521F8CCE.2010508@tilera.com>
Date: Thu, 29 Aug 2013 14:02:54 -0400
From: Chris Metcalf <cmetcalf@...era.com>
To: Wang Sheng-Hui <shhuiw@...il.com>
CC: Andrew Morton <akpm@...ux-foundation.org>,
Paul Gortmaker <paul.gortmaker@...driver.com>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] tile: add null check for kzalloc in tile/kernel/setup.c
On 8/21/2013 9:49 PM, Wang Sheng-Hui wrote:
> Should check the return value of kzalloc first to avoid the null pointer.
> Then can dereference the non-null pointer to access the fields of struct resource.
>
> Signed-off-by: Wang Sheng-Hui <shhuiw@...il.com>
> ---
> arch/tile/kernel/setup.c | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks. Taken into the tile tree.
--
Chris Metcalf, Tilera Corp.
http://www.tilera.com
--
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