Re: [PATCH 2.6.19] e1000: replace kmalloc with kzalloc

2006-12-17 Thread Ingo Oeser
On Tuesday, 12. December 2006 18:34, Pekka Enberg wrote: > On 12/12/06, Yan Burman <[EMAIL PROTECTED]> wrote: > > size = txdr->count * sizeof(struct e1000_buffer); > > - if (!(txdr->buffer_info = kmalloc(size, GFP_KERNEL))) { > > + if (!(txdr->buffer_info = kzalloc(size, GFP_KER

Re: [PATCH 2.6.19] e1000: replace kmalloc with kzalloc

2006-12-12 Thread Auke Kok
Pekka Enberg wrote: On 12/12/06, Yan Burman <[EMAIL PROTECTED]> wrote: size = txdr->count * sizeof(struct e1000_buffer); - if (!(txdr->buffer_info = kmalloc(size, GFP_KERNEL))) { + if (!(txdr->buffer_info = kzalloc(size, GFP_KERNEL))) { ret_val = 1;

Re: [PATCH 2.6.19] e1000: replace kmalloc with kzalloc

2006-12-12 Thread Pekka Enberg
On 12/12/06, Yan Burman <[EMAIL PROTECTED]> wrote: size = txdr->count * sizeof(struct e1000_buffer); - if (!(txdr->buffer_info = kmalloc(size, GFP_KERNEL))) { + if (!(txdr->buffer_info = kzalloc(size, GFP_KERNEL))) { ret_val = 1; goto err_nomem;

[PATCH 2.6.19] e1000: replace kmalloc with kzalloc

2006-12-12 Thread Yan Burman
Replace kmalloc+memset with kzalloc Signed-off-by: Yan Burman <[EMAIL PROTECTED]> diff -rubp linux-2.6.19-rc5_orig/drivers/net/e1000/e1000_ethtool.c linux-2.6.19-rc5_kzalloc/drivers/net/e1000/e1000_ethtool.c --- linux-2.6.19-rc5_orig/drivers/net/e1000/e1000_ethtool.c 2006-11-09 12:16:21.000