]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Check for errors and zero-length transfers in the ulpt_input() input
authorIan Dowse <iedowse@FreeBSD.org>
Wed, 30 Oct 2002 01:18:58 +0000 (01:18 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Wed, 30 Oct 2002 01:18:58 +0000 (01:18 +0000)
commit8a7562d079c5b89a1592300df1bf20eca7b120e4
tree3f354ffeb9a09a8ee03f78caac1f8289faf9f468
parent34faf20fae0048eb6d9fe192079f0f1743d5b866
Check for errors and zero-length transfers in the ulpt_input() input
pipe callback function, and just return if these cases are detected.
Without these checks, the ulpt driver may cause an infinite loop
of failing USB transfers that can hang the whole machine. This makes
printing work for me on a HP DJ950C printer.
sys/dev/usb/ulpt.c