Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58084 Details for
Bug 91496
Skype crashing with NFORCE 1.0.0301 drivers
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for the 1.0.0301 version of the NFORCE drivers
nvmain.patch (text/plain), 1.20 KB, created by
Lawrence Lee
on 2005-05-04 16:29:08 UTC
(
hide
)
Description:
Patch for the 1.0.0301 version of the NFORCE drivers
Filename:
MIME Type:
Creator:
Lawrence Lee
Created:
2005-05-04 16:29:08 UTC
Size:
1.20 KB
patch
obsolete
>--- nvmain.c 2005-03-04 21:28:03.000000000 -0800 >+++ newnvmain.c 2005-04-27 10:41:36.316725744 -0700 >@@ -988,7 +988,7 @@ > { > unsigned long flags = 0; > unsigned long received = 0; >- unsigned long count = 0; >+ unsigned long count = 0, AmountToCopy = 0; > int status = 0, i=0; > mem_buf_t *mb = NULL; > #if (ENABLE_MONO) >@@ -1011,16 +1011,18 @@ > spin_unlock_irqrestore(&card->lock,flags); > return 0; > } >- >+ >+ AmountToCopy = size; > while((received < size) && (!nvstream->buf[nvstream->drain_index].in_use)) { > mb = (mem_buf_t *) &nvstream->buf[nvstream->drain_index]; >- count = size < (nvstream->frag_size - mb->count) ? size : nvstream->frag_size - mb->count; >+ count = AmountToCopy < (nvstream->frag_size - mb->count) ? AmountToCopy : nvstream->frag_size - mb->count; > > if(nvstream->Channels > 1) { > if(copy_to_user(mem,(u8*)mb->page + mb->count ,count)) { > break; > } > mb->count += count; >+ AmountToCopy -= count; > } > #if (ENABLE_MONO) > else { >@@ -1040,6 +1042,7 @@ > > } > if(status) break; >+ AmountToCopy = ((size - received) << 1); > } > #endif > // once the buffer is copied add the buffer back if possible
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 91496
: 58084 |
58085