]> git.proxmox.com Git - mirror_qemu.git/commit - hw/9pfs/9p.c
9pfs: check return value of v9fs_co_name_to_path()
authorGreg Kurz <groug@kaod.org>
Thu, 25 May 2017 08:30:14 +0000 (10:30 +0200)
committerGreg Kurz <groug@kaod.org>
Thu, 25 May 2017 08:30:14 +0000 (10:30 +0200)
commit4fa62005d0a85df9bb14ea9f53109d7c5f66eeb9
tree94562ed30ab6a040890679f7e40b722fc3a294e4
parentfcdcf1eed2fd26bfe836080755ba4322d3c1f2cc
9pfs: check return value of v9fs_co_name_to_path()

These v9fs_co_name_to_path() call sites have always been around. I guess
no care was taken to check the return value because the name_to_path
operation could never fail at the time. This is no longer true: the
handle and synth backends can already fail this operation, and so will the
local backend soon.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/9pfs/9p.c