lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTi=gibTo_cC83AV2QmQgh4kDiPsA1taCm4NXztYs@mail.gmail.com>
Date:	Fri, 5 Nov 2010 10:15:15 +0100
From:	Peter Bortas <bortas@...il.com>
To:	Jan Kara <jack@...e.cz>
Cc:	Joe Perches <joe@...ches.com>, Jiri Kosina <trivial@...nel.org>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 40/49] fs/udf: Use vzalloc

Hi,

On Fri, Nov 5, 2010 at 10:11 AM, Jan Kara <jack@...e.cz> wrote:
> On Thu 04-11-10 20:08:04, Joe Perches wrote:
>> Signed-off-by: Joe Perches <joe@...ches.com>
>> ---
>>  fs/udf/super.c |    5 ++---
>>  1 files changed, 2 insertions(+), 3 deletions(-)
>  I've merged the patch into my tree.
>
>                                                        Honza
>
>>
>> diff --git a/fs/udf/super.c b/fs/udf/super.c
>> index 4a5c7c6..6e07d99 100644
>> --- a/fs/udf/super.c
>> +++ b/fs/udf/super.c
>> @@ -959,9 +959,9 @@ static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
>>               (sizeof(struct buffer_head *) * nr_groups);
>>
>>       if (size <= PAGE_SIZE)
>> -             bitmap = kmalloc(size, GFP_KERNEL);
>> +             bitmap = kzalloc(size, GFP_KERNEL);
>>       else
>> -             bitmap = vmalloc(size); /* TODO: get rid of vmalloc */
>> +             bitmap = vzalloc(size); /* TODO: get rid of vmalloc */

Shouldn't this comment be removed or at least changed to match the new malloc?

>>
>>       if (bitmap == NULL) {
>>               udf_error(sb, __func__,
>> @@ -970,7 +970,6 @@ static struct udf_bitmap *udf_sb_alloc_bitmap(struct super_block *sb, u32 index)
>>               return NULL;
>>       }
>>
>> -     memset(bitmap, 0x00, size);
>>       bitmap->s_block_bitmap = (struct buffer_head **)(bitmap + 1);
>>       bitmap->s_nr_groups = nr_groups;
>>       return bitmap;
>> --
>> 1.7.3.1.g432b3.dirty
>>
> --
> Jan Kara <jack@...e.cz>
> SUSE Labs, CR

-- 
Peter Bortas
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ