{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)
commitae8168b3eb2325bd50d2a9e73717b5bf1dcb80eb
tree5367a10b8e46571b02052d878dc4898a0d97815b
parent1eb4be31507d362f4401da83b369d16a5cc6cc74
{pread,pwrite}_async: fix potential segfault in out of memory condition

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>
lib/libnfs.c