linux-aio: Fix laio_submit error handling
authorKevin Wolf <kwolf@redhat.com>
Thu, 22 Sep 2011 12:21:30 +0000 (14:21 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 11 Oct 2011 07:41:47 +0000 (09:41 +0200)
commit2af19f39f3a4fb4d239fefcf212a48253d12930e
tree3de875cff621745716291e503a9ab5787139c888
parentd7535a52e812eba72daa34a8f3378411fd512214
linux-aio: Fix laio_submit error handling

The error handling order was in the wrong order, so that either the ACB would
be leaked or the counter would be decremented when it shouldn't.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
linux-aio.c