From: Pete Zaitcev Date: Wed, 11 Jul 2007 03:09:58 +0000 (-0700) Subject: USB: usblp: "Big cleanup" breaks O_NONBLOCK X-Git-Tag: v2.6.23-rc1~231^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10e485221edd2799dc495e4cde98fe74aeb292b1;p=pandora-kernel.git USB: usblp: "Big cleanup" breaks O_NONBLOCK I found the first regresson in the rewritten ("all dynamic" and "no races") driver. If application uses O_NONBLOCK, I return -EAGAIN despite the URB being submitted successfuly. This causes the application to resubmit the same data erroneously. The fix is to pretend that the transfer has succeeded even if URB was merely queued. It is the same behaviour as with the old version. Signed-off-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed