diff options
| author | Greg Kurz | 2016-09-16 11:44:49 +0200 |
|---|---|---|
| committer | Greg Kurz | 2016-09-19 11:39:48 +0200 |
| commit | 13fd08e631ec0c3ff5ad1bdcb6a4474c7d9a024f (patch) | |
| tree | baea24c959a591dde9dc76c8855e42378d5d82dc /pc-bios/efi-e1000.rom | |
| parent | tests: virtio-9p: add basic configuration test (diff) | |
| download | qemu-13fd08e631ec0c3ff5ad1bdcb6a4474c7d9a024f.tar.gz qemu-13fd08e631ec0c3ff5ad1bdcb6a4474c7d9a024f.tar.xz qemu-13fd08e631ec0c3ff5ad1bdcb6a4474c7d9a024f.zip | |
9pfs: fix potential segfault during walk
If the call to fid_to_qid() returns an error, we will call v9fs_path_free()
on uninitialized paths.
It is a regression introduced by the following commit:
56f101ecce0e 9pfs: handle walk of ".." in the root directory
Let's fix this by initializing dpath and path before calling fid_to_qid().
Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
[groug: updated the changelog to indicate this is regression and to provide
the offending commit SHA1]
Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'pc-bios/efi-e1000.rom')
0 files changed, 0 insertions, 0 deletions
