lkml.org 
[lkml]   [2000]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Updated Linux 2.4 issues page
On Mon, Aug 21, 2000 at 04:13:00PM -0700, Dunlap, Randy wrote:
>
> usblp_read() and usblp_write() already use separate urbs
> for read vs. write and for each instance of the lp (minor).
> Can you give me a brief explanation of the problem?
> (and I'll look at David's dc2xx patch).

>From what I understand, copy_to_user can sleep, then (for the usblp_read
function) the read can be called again, the data can be written to the
urb and submitted, then the previous copy_to_user wakes up, and tries to
resubmit the urb again with different data this time. Not good.

Same thing for the usblp_write function.

I'll try to go through the drivers, and post a summary later tonight.

greg k-h

--
greg@(kroah|wirex).com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:37    [W:0.088 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site