]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
zd1211rw: remove URB_SHORT_NOT_OK flag in zd_usb_iowrite16v_async()
authorJussi Kivilinna <jussi.kivilinna@mbnet.fi>
Fri, 1 Apr 2011 16:34:08 +0000 (19:34 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 4 Apr 2011 19:22:12 +0000 (15:22 -0400)
commit2fc713b20469b2779fa89f582d2a9696b10031e7
treed82d1d8ae688255efc96bc9f60295cccbdba0987
parentfcf8bd3ba5362682f945a3f838070ac5e10ff871
zd1211rw: remove URB_SHORT_NOT_OK flag in zd_usb_iowrite16v_async()

Patch removes the bogus flag introduced by upstream commit
eefdbec1ea8b7093d2c09d1825f68438701723cf. Old code had buffer length check
that new code tried to handle with URB_SHORT_NOT_OK flag. With USB debugging
enabled bogus flag caused usb_submit_urb fail.

Remove URB_SHORT_NOT_OK flag and add buffer length check to urb completion
handler.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=32092
Reported-by: Jonathan Callen <abcd@gentoo.org>
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_usb.c