Skip to content
Commit d06c61f3 authored by Greg Kurz's avatar Greg Kurz Committed by Michael Roth
Browse files

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:

56f101ec 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: default avatarGreg Kurz <groug@kaod.org>
Reviewed-by: default avatarCé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: default avatarGreg Kurz <groug@kaod.org>

(cherry picked from commit 13fd08e6)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 91a2f462
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment