Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193253
b: refs/heads/master
c: 550a8b6
h: refs/heads/master
i:
  193251: 26aa7ec
v: v3
  • Loading branch information
Julia Lawall authored and Takashi Iwai committed May 17, 2010
1 parent b54330f commit ebb8973
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1be1d76b8a1f622fd3a64778dfe117053f2af1f2
refs/heads/master: 550a8b691ca67761bbf382d98fbd81d215f1d7f0
3 changes: 1 addition & 2 deletions trunk/sound/pci/asihpi/hpi6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,13 @@ static void subsys_create_adapter(struct hpi_message *phm,
if (phm->u.s.resource.r.pci->device_id != HPI_PCI_DEV_ID_PCI2040)
return;

ao.priv = kmalloc(sizeof(struct hpi_hw_obj), GFP_KERNEL);
ao.priv = kzalloc(sizeof(struct hpi_hw_obj), GFP_KERNEL);
if (!ao.priv) {
HPI_DEBUG_LOG(ERROR, "cant get mem for adapter object\n");
phr->error = HPI_ERROR_MEMORY_ALLOC;
return;
}

memset(ao.priv, 0, sizeof(struct hpi_hw_obj));
/* create the adapter object based on the resource information */
/*? memcpy(&ao.Pci,&phm->u.s.Resource.r.Pci,sizeof(ao.Pci)); */
ao.pci = *phm->u.s.resource.r.pci;
Expand Down
3 changes: 1 addition & 2 deletions trunk/sound/pci/asihpi/hpi6205.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,13 +482,12 @@ static void subsys_create_adapter(struct hpi_message *phm,
if (phm->u.s.resource.r.pci->device_id != HPI_PCI_DEV_ID_DSP6205)
return;

ao.priv = kmalloc(sizeof(struct hpi_hw_obj), GFP_KERNEL);
ao.priv = kzalloc(sizeof(struct hpi_hw_obj), GFP_KERNEL);
if (!ao.priv) {
HPI_DEBUG_LOG(ERROR, "cant get mem for adapter object\n");
phr->error = HPI_ERROR_MEMORY_ALLOC;
return;
}
memset(ao.priv, 0, sizeof(struct hpi_hw_obj));

ao.pci = *phm->u.s.resource.r.pci;
err = create_adapter_obj(&ao, &os_error_code);
Expand Down

0 comments on commit ebb8973

Please sign in to comment.