{pread,pwrite}_async: fix potential segfault in out of memory condition
authorPeter Lieven <pl@kamp.de>
Sat, 15 Mar 2014 16:11:27 +0000 (17:11 +0100)
committerPeter Lieven <pl@kamp.de>
Sun, 16 Mar 2014 19:16:07 +0000 (20:16 +0100)
if there are already requests in flight we cannot return with an error immediately
from the functions since the caller will likely tidy up his data structures directly
and later on we call his callback with private_data that has likely already
been freed.

Signed-off-by: Peter Lieven <pl@kamp.de>

No differences found