Instead of trying to biowait on a buf that has errored, do the
authorthib <thib@openbsd.org>
Thu, 22 Jul 2010 14:34:06 +0000 (14:34 +0000)
committerthib <thib@openbsd.org>
Thu, 22 Jul 2010 14:34:06 +0000 (14:34 +0000)
commitc1197306da39cdfc73c28426006d03092b353161
tree5ccd54cec4de1c5dd4d188004c792adf2cc089ff
parentae4648d9f15a60749e4f71c938cfb964550157a4
Instead of trying to biowait on a buf that has errored, do the
right thing, throw it away by marking it as B_INVAL and setting
the B_ERROR flag and b_error to the errno that was returned.

B_RAW doesn't matter there.

Issue report my mlarkin@, this diff tested and confirmed to
fix the issue by mlarkin also, thanks!

OK krw@, beck@, deraadt@
sys/dev/vnd.c