Messages in this thread | | | Date | Thu, 29 Aug 2013 14:02:54 -0400 | From | Chris Metcalf <> | 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@gmail.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
| |