public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: iteraid.patch added to -mm tree
       [not found] <200506170053.j5H0rB6L009951@shell0.pdx.osdl.net>
@ 2005-06-17 10:47 ` Alexey Dobriyan
  0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2005-06-17 10:47 UTC (permalink / raw)
  To: Donald.Huang; +Cc: akpm, linux-kernel

On 6/16/05, akpm@osdl.org <akpm@osdl.org> wrote:
> 
> The patch titled
> 
>      ITE RAID driver
> 
> has been added to the -mm tree.

> +u8 IT8212GetChipStatus(uioctl_t * ioc)
> +{

> +	pPhyDiskInfo = kmalloc(sizeof(PHYSICAL_DISK_STATUS) * 4, GFP_KERNEL);
> +	if (pPhyDiskInfo == NULL) {
> +		printk("IT8212GetChipStatus: error kmalloc for "
> +				"PHYSCIAL_DISK_STATUS.\n");
> +		return -ENOMEM;
> +	}
> +	memset(pPhyDiskInfo, 0, sizeof(PHYSICAL_DISK_STATUS));

kmalloc or memset is right wrt size?

Expect patches to fix sparse warnings, remove useless comments,
typedef horrors and other misc stuff in a day or so.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-06-17 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200506170053.j5H0rB6L009951@shell0.pdx.osdl.net>
2005-06-17 10:47 ` iteraid.patch added to -mm tree Alexey Dobriyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox