From: Csaba Henk Date: Sat, 3 Jun 2006 23:04:18 +0000 (+0000) Subject: fix emergency unmount in helper.c X-Git-Tag: fuse_2_6_0_pre3~5 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d021ce48ab5e32a1bf783b007cf656565d7eb6d8;p=qemu-gpiodev%2Flibfuse.git fix emergency unmount in helper.c --- diff --git a/ChangeLog b/ChangeLog index 041dfcb..d8369ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-06-04 Csaba Henk + + * lib: fix emergency umount in helper.c when malloc fails. + (The way it was done would end up in a segfault.) + 2006-06-01 Csaba Henk * lib: adjust threading related compiler flags. diff --git a/lib/helper.c b/lib/helper.c index bcdd60b..7f8ffa5 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -195,7 +195,7 @@ static struct fuse_chan *fuse_mount_common(const char *mountpoint, ch = fuse_kern_chan_new(fd); if (!ch) - fuse_unmount(mountpoint, NULL); + fuse_kern_unmount(mountpoint, fd); return ch; }