lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] bonding: Replace kmalloc() + memset() pairs with the appropriate kzalloc() calls
Hi Joe,

On 1/12/07, joe jin <joe.jin@oracle.com> 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) {
> printk(KERN_ERR DRV_NAME
> ": %s: Error: Failed to allocate RLB hash table\n",

You forgot to remove the memset here.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-01-12 09:05    [W:0.054 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site