patch-2.4.19 linux-2.4.19/drivers/sound/via82cxxx_audio.c
Next file: linux-2.4.19/drivers/sound/vwsnd.c
Previous file: linux-2.4.19/drivers/sound/trident.h
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
Fri Aug 2 17:39:44 2002
- Orig file:
linux-2.4.18/drivers/sound/via82cxxx_audio.c
- Orig date:
Mon Feb 25 11:38:07 2002
diff -urN linux-2.4.18/drivers/sound/via82cxxx_audio.c linux-2.4.19/drivers/sound/via82cxxx_audio.c
@@ -354,8 +354,6 @@
static struct pci_device_id via_pci_tbl[] __initdata = {
{ PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C686_5,
PCI_ANY_ID, PCI_ANY_ID, },
- { PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8233_5,
- PCI_ANY_ID, PCI_ANY_ID, },
{ 0, }
};
MODULE_DEVICE_TABLE(pci,via_pci_tbl);
@@ -2051,7 +2049,7 @@
while ((count > 0) && (chan->slop_len < chan->frag_size)) {
size_t slop_left = chan->frag_size - chan->slop_len;
void *base = chan->pgtbl[n / (PAGE_SIZE / chan->frag_size)].cpuaddr;
- unsigned ofs = n % (PAGE_SIZE / chan->frag_size);
+ unsigned ofs = (n % (PAGE_SIZE / chan->frag_size)) * chan->frag_size;
size = (count < slop_left) ? count : slop_left;
if (copy_to_user (userbuf,
@@ -2528,7 +2526,7 @@
info.fragments,
info.bytes);
- return copy_to_user (arg, &info, sizeof (info));
+ return copy_to_user (arg, &info, sizeof (info))?-EFAULT:0;
}
@@ -2572,7 +2570,7 @@
info.blocks,
info.ptr);
- return copy_to_user (arg, &info, sizeof (info));
+ return copy_to_user (arg, &info, sizeof (info))?-EFAULT:0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)