mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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>
This commit is contained in:
parent
930738de60
commit
82af308f65
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue