]> git.ipfire.org Git - thirdparty/qemu.git/commit
9pfs: remove side-effects in local_open() and local_opendir()
authorGreg Kurz <groug@kaod.org>
Sun, 26 Feb 2017 22:41:55 +0000 (23:41 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:06:52 +0000 (12:06 -0500)
commit52d43ff72e3f497f73bfe0da180d8a46b6589776
tree13d2b98575fa71ad602768f82516c92ce2ac9793
parente103f9e7b431ae5b0f6d28262ae0646f37c3645f
9pfs: remove side-effects in local_open() and local_opendir()

If these functions fail, they should not change *fs. Let's use local
variables to fix this.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 21328e1e57f526e3f0c2fcd00f10c8aa6e7bc07f)
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/9pfs/9p-local.c