X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=sound%2Foss%2Fad1889.c;h=c0730a3563a2962ab86a4c24ec39c063c4df0de4;hb=39df232f1a9ba48d41c68ee7d4046756e709cf91;hp=f0724327493c0c47e66a822e009ee0602c064a9b;hpb=7baca6ad0ef09c8a78d798c93a3ce25336e8f50f;p=powerpc.git diff --git a/sound/oss/ad1889.c b/sound/oss/ad1889.c index f072432749..c0730a3563 100644 --- a/sound/oss/ad1889.c +++ b/sound/oss/ad1889.c @@ -230,9 +230,8 @@ static ad1889_dev_t *ad1889_alloc_dev(struct pci_dev *pci) struct dmabuf *dmabuf; int i; - if ((dev = kmalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL) + if ((dev = kzalloc(sizeof(ad1889_dev_t), GFP_KERNEL)) == NULL) return NULL; - memset(dev, 0, sizeof(ad1889_dev_t)); spin_lock_init(&dev->lock); dev->pci = pci;