Re: [PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-14 Thread joe jin
> Hi Joe, > > On 1/12/07, joe jin <[EMAIL PROTECTED]> wrote: > > @@ -788,7 +786,7 @@ static int rlb_initialize(struct bonding > > > > spin_lock_init(&(bond_info->rx_hashtbl_lock)); > > > > - new_hashtbl = kmalloc(size, GFP_KERNEL); > > + new_hashtbl = kzalloc(size,

Re: [PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-14 Thread joe jin
Hi Joe, On 1/12/07, joe jin [EMAIL PROTECTED] wrote: @@ -788,7 +786,7 @@ static int rlb_initialize(struct bonding spin_lock_init((bond_info-rx_hashtbl_lock)); - new_hashtbl = kmalloc(size, GFP_KERNEL); + new_hashtbl = kzalloc(size, GFP_KERNEL); if

Re: [PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-11 Thread Pekka Enberg
Hi Joe, On 1/12/07, joe jin <[EMAIL PROTECTED]> wrote: @@ -788,7 +786,7 @@ static int rlb_initialize(struct bonding spin_lock_init(&(bond_info->rx_hashtbl_lock)); - new_hashtbl = kmalloc(size, GFP_KERNEL); + new_hashtbl = kzalloc(size, GFP_KERNEL); if

[PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-11 Thread joe jin
This patch replace kmalloc() + memset() pairs with the appropriate kzalloc() calls. Signed-off-by: Joe Jin <[EMAIL PROTECTED]> -- diff -urNp old/drivers/net/bonding/bond_alb.c new/drivers/net/bonding/bond_alb.c --- old/drivers/net/bonding/bond_alb.c 2006-11-30 05:57:37.0 +0800 +++

[PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-11 Thread joe jin
This patch replace kmalloc() + memset() pairs with the appropriate kzalloc() calls. Signed-off-by: Joe Jin [EMAIL PROTECTED] -- diff -urNp old/drivers/net/bonding/bond_alb.c new/drivers/net/bonding/bond_alb.c --- old/drivers/net/bonding/bond_alb.c 2006-11-30 05:57:37.0 +0800 +++

Re: [PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls

2007-01-11 Thread Pekka Enberg
Hi Joe, On 1/12/07, joe jin [EMAIL PROTECTED] wrote: @@ -788,7 +786,7 @@ static int rlb_initialize(struct bonding spin_lock_init((bond_info-rx_hashtbl_lock)); - new_hashtbl = kmalloc(size, GFP_KERNEL); + new_hashtbl = kzalloc(size, GFP_KERNEL); if (!new_hashtbl) {