lkml.org 
[lkml]   [2005]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: iteraid.patch added to -mm tree
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.
-
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: 2005-06-17 12:50    [W:0.028 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site