diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 18:17:47 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-03 18:17:47 -0800 |
commit | 89a2fa5f2139be35e214bcf86a8291d6a1da75f2 (patch) | |
tree | 850ea412b013360bcace751db91cac6fb0067535 /drivers/parisc/hppb.c | |
parent | 27266a18dc56611e2f2ec4e8aced0fe221e9b4b8 (diff) | |
parent | 68ee3eb8295c9c164071fcbd367c419121bd55f8 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6
Diffstat (limited to 'drivers/parisc/hppb.c')
-rw-r--r-- | drivers/parisc/hppb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/parisc/hppb.c b/drivers/parisc/hppb.c index 5edf93f8075..07dc2b6d4e9 100644 --- a/drivers/parisc/hppb.c +++ b/drivers/parisc/hppb.c @@ -60,12 +60,11 @@ static int hppb_probe(struct parisc_device *dev) } if(card->hpa) { - card->next = kmalloc(sizeof(struct hppb_card), GFP_KERNEL); + card->next = kzalloc(sizeof(struct hppb_card), GFP_KERNEL); if(!card->next) { printk(KERN_ERR "HP-PB: Unable to allocate memory.\n"); return 1; } - memset(card->next, '\0', sizeof(struct hppb_card)); card = card->next; } printk(KERN_INFO "Found GeckoBoa at 0x%lx\n", dev->hpa.start); |