[PATCH] kexec: check size before trying the malloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: HATAYAMA Daisuke <d.hatayama@xxxxxxxxxxxxxx>
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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux