Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208404
b: refs/heads/master
c: 85bc081
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Linus Torvalds committed Aug 11, 2010
1 parent b21a131 commit afc6bfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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: d8187b945aa4ed9ea298518e3dac691ea09724e5
refs/heads/master: 85bc081f44d53e3ac268c59275cc3b9b5afae04a
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/aic94xx/aic94xx_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,9 @@ static int asd_register_sas_ha(struct asd_ha_struct *asd_ha)
{
int i;
struct asd_sas_phy **sas_phys =
kmalloc(ASD_MAX_PHYS * sizeof(struct asd_sas_phy), GFP_KERNEL);
kcalloc(ASD_MAX_PHYS, sizeof(*sas_phys), GFP_KERNEL);
struct asd_sas_port **sas_ports =
kmalloc(ASD_MAX_PHYS * sizeof(struct asd_sas_port), GFP_KERNEL);
kcalloc(ASD_MAX_PHYS, sizeof(*sas_ports), GFP_KERNEL);

if (!sas_phys || !sas_ports) {
kfree(sas_phys);
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/ch.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ ch_readconfig(scsi_changer *ch)
}

/* look up the devices of the data transfer elements */
ch->dt = kmalloc(ch->counts[CHET_DT]*sizeof(struct scsi_device),
ch->dt = kcalloc(ch->counts[CHET_DT], sizeof(*ch->dt),
GFP_KERNEL);

if (!ch->dt) {
Expand Down

0 comments on commit afc6bfb

Please sign in to comment.