l2_packet_ndis: Fix overlapped write not to corrupt stack
authorJouni Malinen <j@w1.fi>
Thu, 2 Sep 2010 10:23:14 +0000 (13:23 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 2 Sep 2010 10:23:14 +0000 (13:23 +0300)
commitf4e5fd948a43f1889774aa3a6920ded90bb678ea
tree4464a928e600caeca51b679db34044faf278ffed
parentde1267d4eb69084b342dd8fdf392434d19cf6464
l2_packet_ndis: Fix overlapped write not to corrupt stack

When using overlapped write, we must have the provided memory
areas available during the operation and cannot just use stack
unless we wait for the completion within the function. In the case
of TX here, we can easily wait for the completion since it is likely
to happen immediately. In addition, this provides more reliable
success/failure return value for l2_packet_send(). [Bug 328]
src/l2_packet/l2_packet_ndis.c