summaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2009-02-27 09:27:44 +0100
committerTakashi Iwai <tiwai@suse.de>2009-02-27 17:32:21 +0100
commit82af308f658cf2193e5058bbbfd37c3437cfb4e7 (patch)
treeb428773f64ac5dca11e7141c50deb35d37b01709 /sound/pci/oxygen
parent930738de602d2ceb0d1c1b368fe2a8d2a974ab72 (diff)
downloadblackbird-op-linux-82af308f658cf2193e5058bbbfd37c3437cfb4e7.tar.gz
blackbird-op-linux-82af308f658cf2193e5058bbbfd37c3437cfb4e7.zip
sound: oxygen: zero-initialize model data
Model drivers assume that model_data is zeroed, so we better use kzalloc() (like we did before when it was allocated together with the card structure). Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen')
-rw-r--r--sound/pci/oxygen/oxygen_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c
index 6e1cdd2fd768..312251d39696 100644
--- a/sound/pci/oxygen/oxygen_lib.c
+++ b/sound/pci/oxygen/oxygen_lib.c
@@ -566,7 +566,7 @@ int oxygen_pci_probe(struct pci_dev *pci, int index, char *id,
goto err_pci_regions;
if (chip->model.model_data_size) {
- chip->model_data = kmalloc(chip->model.model_data_size,
+ chip->model_data = kzalloc(chip->model.model_data_size,
GFP_KERNEL);
if (!chip->model_data) {
err = -ENOMEM;
OpenPOWER on IntegriCloud