[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc

2024-02-26 Thread dinglimin
Signed-off-by: dinglimin --- semihosting/uaccess.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/semihosting/uaccess.c b/semihosting/uaccess.c index dc587d73bc..7788ead9b2 100644 --- a/semihosting/uaccess.c +++ b/semihosting/uaccess.c @@ -14,10 +14,10 @@ void

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-28 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin v4 -> V5:Use g_try_malloc() instead of malloc() V3 -> V4:Delete null checks after g malloc(). V2 -> V3:softmmu_unlock_user changes free to g free. V1

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-27 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin v4 -> V5:Use g_try_malloc() instead of malloc() V3 -> V4:Delete null checks after g malloc(). V2 -> V3:softmmu_unlock_user changes free to g free. V1

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-26 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin V3 -> V4:Delete null checks after g malloc(). g_malloc() is preferred more than g_try_* functions, which return NULL on error, when the size of the requested allocation

[PATCH] os-sys.c:do_freebsd_sysctl The unuser_lock for hnewp and hnamep is missing

2023-07-25 Thread dinglimin
If holdp returns NULL, you need to execute unuser_lock on hnewp and hnamep when exiting the function Signed-off-by: dinglimin --- bsd-user/freebsd/os-sys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bsd-user/freebsd/os-sys.c b/bsd-user/freebsd/os-sys.c index

回复: [PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-25 Thread dinglimin
>On Tue, 25 Jul 2023 at 10:13, Michael Tokarev wrote: > > > > 25.07.2023 12:00, dinglimin wrote: > > > Replaced a call to malloc() and its respective call to free() with > > > g_malloc() and g_free(). > > > > > > Signed-off-by: dinglimin > &

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-25 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin V2 -> V3:softmmu_unlock_user changes free to g free. V1 -> V2:if cpu_memory_rw_debug failed, still need to set p=NULL --- semihosting/uaccess.c | 6 +++--- 1 file chan

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-25 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin V1 -> V2:if cpu_memory_rw_debug failed, still need to set p=NULL --- semihosting/uaccess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/semihost

[PATCH] semihosting/uaccess.c: Replaced a malloc call with g_malloc.

2023-07-25 Thread dinglimin
Replaced a call to malloc() and its respective call to free() with g_malloc() and g_free(). Signed-off-by: dinglimin --- semihosting/uaccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/semihosting/uaccess.c b/semihosting/uaccess.c index 8018828069..8f2e6f63ee

[PATCH] tests/migration: remove the unused local variable

2022-09-28 Thread dinglimin
From: "dingli...@cmss.chinamobile.com" Remove the unused local variable "records". Signed-off-by: dinglimin --- tests/migration/guestperf/engine.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/migration/guestperf/engine.py b/tests/migration/guestperf/engine

[PATCH] vmstate-static-checker:remove this redundant return

2022-09-28 Thread dinglimin
Jump statements, such as return and continue let you change the default flow of program execution, but jump statements that direct the control flow to the original direction are just a waste of keystrokes. Signed-off-by: dinglimin --- scripts/vmstate-static-checker.py | 1 - 1 file changed, 1