[PATCH] kexec: check size before trying the malloc

HATAYAMA Daisuke d.hatayama at jp.fujitsu.com
Thu Mar 14 06:30:59 EDT 2013


From: HATAYAMA Daisuke <d.hatayama at jp.fujitsu.com>
Subject: Re: [PATCH] kexec: check size before trying the malloc
Date: Thu, 14 Mar 2013 19:26:10 +0900

> From: Simon Horman <horms at verge.net.au>
> Subject: Re: [PATCH] kexec: check size before trying the malloc
> Date: Thu, 14 Mar 2013 09:37:03 +0100
> 
>> On Thu, Mar 14, 2013 at 01:16:25AM +0800, Zhang Yanfei wrote:
>>> From: Zhang Yanfei <zhangyanfei at cn.fujitsu.com>
>>> 
>>> If size is zero, it is unnecessary to do the malloc operation.
>>> So checking size first is better than doing malloc first.
>>> 
>>> Signed-off-by: Zhang Yanfei <zhangyanfei at cn.fujitsu.com>
>> 
>> Thanks, applied.
>> 
> 
> Wait. The check should not be removed.

Sorry, Android screen is so small that I wrongly read the patch. I
have no objection.

Thanks.
HATAYAMA, Daisuke




More information about the kexec mailing list