[PATCH] ARM: Wrong size used in dump_mem()

roel kluin roel.kluin at gmail.com
Thu Dec 17 16:20:18 EST 2009


On Thu, Dec 17, 2009 at 10:17 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Thu, Dec 17, 2009 at 10:15:58PM +0100, Roel Kluin wrote:
>> The sizeof the pointed to should be used rather than of the pointer
>>
>> Signed-off-by: Roel Kluin <roel.kluin at gmail.com>
>> ---
>> Unless I am mistaken?
>
> You are mistaken.  sizeof(array) is the byte size of the array.
> sizeof(*array) is the size of one individual object of the array.
>
> The code is correct as is - which is to fill  the entire array with
> space characters and then zero the last one.

hmm, I see. sorry for the noise



More information about the linux-arm-kernel mailing list