X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=sound%2Fcore%2Fmemalloc.c;h=920e5780c2284c9c086dd1bfaf02aff5462786d2;hb=8d3c202be23c5a915f7053ebd4e96f44700c6a62;hp=9b4992eab479defd06cb28663ff448beb047be79;hpb=c4ec20717313daafba59225f812db89595952b83;p=karo-tx-linux.git diff --git a/sound/core/memalloc.c b/sound/core/memalloc.c index 9b4992eab479..920e5780c228 100644 --- a/sound/core/memalloc.c +++ b/sound/core/memalloc.c @@ -568,6 +568,7 @@ static ssize_t snd_mem_proc_write(struct file *file, const char __user * buffer, if (pci_set_dma_mask(pci, mask) < 0 || pci_set_consistent_dma_mask(pci, mask) < 0) { printk(KERN_ERR "snd-page-alloc: cannot set DMA mask %lx for pci %04x:%04x\n", mask, vendor, device); + pci_dev_put(pci); return count; } }