Correct some dma cleanup error paths.
authorjsg <jsg@openbsd.org>
Wed, 6 Aug 2014 15:40:40 +0000 (15:40 +0000)
committerjsg <jsg@openbsd.org>
Wed, 6 Aug 2014 15:40:40 +0000 (15:40 +0000)
commitf14aac2f8532b784416778820d91653f2485811f
tree88ee5fdd8ff4ecbf0ab029a4b21d26dab1ecbb09
parent6a37c5714ca9daa072fc83c6cbeb8f4d4d820f4a
Correct some dma cleanup error paths.

While the index variables were correct the arrays of
dma handles they indexed were swapped for rx and tx.

As there are a mismatched number of rx and tx descriptors
we'd walk off the end of the rx handle array by 30 items.

ok deraadt@
sys/arch/vax/if/if_qe.c
sys/arch/vax/if/sgec.c