]> git.baikalelectronics.ru Git - 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)
commitd94f01f6c8a3ff0c8e4dde50c46a4a585791d5f1
treed82d1d8ae688255efc96bc9f60295cccbdba0987
parentde7ed56c306a2da82294b9826b7feb34c84fa205
zd1211rw: remove URB_SHORT_NOT_OK flag in zd_usb_iowrite16v_async()

Patch removes the bogus flag introduced by upstream commit
fa36c2be50ff076f37e4f641f1f495656de22bfa. 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