patch-2.1.89 linux/drivers/sound/soundcard.c

Next file: linux/fs/Config.in
Previous file: linux/drivers/sound/sound_firmware.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.88/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -670,7 +670,7 @@
 	case SND_DEV_DSP:
 	case SND_DEV_DSP16:
 	case SND_DEV_AUDIO:
-		return DMAbuf_poll(dev >> 4, wait);
+		return DMAbuf_poll(file, dev >> 4, wait);
 #endif
 	}
 	return 0;
@@ -732,7 +732,8 @@
 		vma->vm_page_prot))
 		return -EAGAIN;
 
-	vma->vm_dentry = dget(file->f_dentry);
+	vma->vm_file = file;
+	file->f_count++;
 
 	dmap->mapping_flags |= DMA_MAP_MAPPED;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov