Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64584
b: refs/heads/master
c: 7460caf
h: refs/heads/master
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Dmitry Torokhov committed Aug 30, 2007
1 parent 79222b0 commit a4ac41e
Show file tree
Hide file tree
Showing 2 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: d9f03831e7dc743ae25863c59f38884f5989ab39
refs/heads/master: 7460caf32a16866f9d8675aa7aefd7d82d1e23f7
6 changes: 2 additions & 4 deletions trunk/drivers/input/serio/gscps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,15 @@ static int __init gscps2_probe(struct parisc_device *dev)
if (dev->id.sversion == 0x96)
hpa += GSC_DINO_OFFSET;

ps2port = kmalloc(sizeof(struct gscps2port), GFP_KERNEL);
serio = kmalloc(sizeof(struct serio), GFP_KERNEL);
ps2port = kzalloc(sizeof(struct gscps2port), GFP_KERNEL);
serio = kzalloc(sizeof(struct serio), GFP_KERNEL);
if (!ps2port || !serio) {
ret = -ENOMEM;
goto fail_nomem;
}

dev_set_drvdata(&dev->dev, ps2port);

memset(ps2port, 0, sizeof(struct gscps2port));
memset(serio, 0, sizeof(struct serio));
ps2port->port = serio;
ps2port->padev = dev;
ps2port->addr = ioremap_nocache(hpa, GSC_STATUS + 4);
Expand Down

0 comments on commit a4ac41e

Please sign in to comment.