9pfs: Update 9pfs-local-Fix-possible patch format
Signed-off-by: Ying Fang <fangying1@huawei.com>
This commit is contained in:
parent
c3e6d825f6
commit
750a7e3757
@ -1,13 +1,27 @@
|
|||||||
|
From 841b8d099c462cd4282c4ced8c2a6512899fd8d9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jiajun Chen <chenjiajun8@huawei.com>
|
||||||
|
Date: Mon, 20 Jan 2020 15:11:39 +0100
|
||||||
|
Subject: [PATCH] 9pfs: local: Fix possible memory leak in local_link()
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
There is a possible memory leak while local_link return -1 without free
|
There is a possible memory leak while local_link return -1 without free
|
||||||
odirpath and oname.
|
odirpath and oname.
|
||||||
|
|
||||||
Reported-by: Euler Robot <euler.robot@huawei.com>
|
Reported-by: Euler Robot <euler.robot@huawei.com>
|
||||||
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
|
|
||||||
Signed-off-by: Jaijun Chen <chenjiajun8@huawei.com>
|
Signed-off-by: Jaijun Chen <chenjiajun8@huawei.com>
|
||||||
Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
|
Signed-off-by: Xiang Zheng <zhengxiang9@huawei.com>
|
||||||
|
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
|
||||||
|
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
||||||
|
Signed-off-by: Greg Kurz <groug@kaod.org>
|
||||||
|
(cherry picked from commit 841b8d099c462cd4282c4ced8c2a6512899fd8d9)
|
||||||
|
---
|
||||||
|
hw/9pfs/9p-local.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c
|
diff --git a/hw/9pfs/9p-local.c b/hw/9pfs/9p-local.c
|
||||||
index 4708c0bd89..491b08aee8 100644
|
index ca64139..d0592c3 100644
|
||||||
--- a/hw/9pfs/9p-local.c
|
--- a/hw/9pfs/9p-local.c
|
||||||
+++ b/hw/9pfs/9p-local.c
|
+++ b/hw/9pfs/9p-local.c
|
||||||
@@ -947,7 +947,7 @@ static int local_link(FsContext *ctx, V9fsPath *oldpath,
|
@@ -947,7 +947,7 @@ static int local_link(FsContext *ctx, V9fsPath *oldpath,
|
||||||
@ -19,3 +33,6 @@ index 4708c0bd89..491b08aee8 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
odirfd = local_opendir_nofollow(ctx, odirpath);
|
odirfd = local_opendir_nofollow(ctx, odirpath);
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user