[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.6] libxl: Have READ_LIBXLDEV use libxl_path rather than be_path
commit 2eab07f6654bb86ed8a7dfa728ebffae2f9a4da7 Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> AuthorDate: Tue May 3 15:40:18 2016 +0100 Commit: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CommitDate: Mon Jun 6 15:06:47 2016 +0100 libxl: Have READ_LIBXLDEV use libxl_path rather than be_path Fix the just-introduced bug in this macro: now it reads the trustworthy libxl_path. Change the variable name in the two functions (nic and channel) which use it. Shuffling the bump in the carpet along, we now introduce three new bugs: the three call sites pass a backend path where a frontend path is expected. No functional change. This is part of XSA-178. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- tools/libxl/libxl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 3c17ba5..397c7e8 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -21,10 +21,10 @@ #define PAGE_TO_MEMKB(pages) ((pages) * 4) #define BACKEND_STRING_SIZE 5 -/* Utility to read /libxl or backend xenstore keys, from be_path */ +/* Utility to read /libxl xenstore keys, from libxl_path */ #define READ_LIBXLDEV(tgc, subpath) ({ \ rc = libxl__xs_read_checked(tgc, XBT_NULL, \ - GCSPRINTF("%s/" subpath, be_path), \ + GCSPRINTF("%s/" subpath, libxl_path), \ &tmp); \ if (rc) goto out; \ (char*)tmp; \ @@ -3471,7 +3471,7 @@ out: } static int libxl__device_nic_from_xenstore(libxl__gc *gc, - const char *be_path, + const char *libxl_path, libxl_device_nic *nic) { const char *tmp; @@ -3819,7 +3819,7 @@ int libxl__init_console_from_channel(libxl__gc *gc, } static int libxl__device_channel_from_xenstore(libxl__gc *gc, - const char *be_path, + const char *libxl_path, libxl_device_channel *channel) { const char *tmp; -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |