Changed malloc to g_malloc, free to g_free in bsd-user/qemu.h
PATCH 1/1 Changed malloc to g_malloc, free to g_free in bsd-user/qemu.h
--- bsd-user/qemu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
bsd-user/qemu.h +2 -2
@@ -357,7 +357,7 @@ static inline void *lock_user(int type, abi_ulong guest_addr, long len, int copy#ifdef DEBUG_REMAP {void *addr; - addr =malloc (len); + addr =g_malloc (len);if (copy)memcpy (addr,g2h (guest_addr), len);else
@@ -383,7 +383,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr,return ;if (len >0 )memcpy (g2h (guest_addr), host_ptr, len); -free (host_ptr); +g_free (host_ptr);#endif }
Signature · 1 line
1.9.1
Just a reminder. waiting for a review for the previous patch.
Quoted 30 lines · Md Haris Iqbal
Signed-off-by Md Haris Iqbal <[email protected]>--- bsd-user/qemu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)bsd-user/qemu.h +2
-3@@ -357,7 +357,7 @@ static inline void *lock_user(int type, abi_ulong guest_addr, long len, int copy#ifdef DEBUG_REMAP {void *addr; - addr =malloc (len); + addr =g_malloc (len);if (copy)memcpy (addr,g2h (guest_addr), len);else @@ -383,7 +383,7 @@ static inline void unlock_user(void *host_ptr, abi_ulong guest_addr,return ;if (len >0 )memcpy (g2h (guest_addr), host_ptr, len); -free (host_ptr); +g_free (host_ptr);#endif } --1.9.1
Signature · 6 lines
With regards, Md Haris Iqbal, Placement Coordinator, MTech IT NITK Surathkal, Contact: +91 8861996962
Sean Bruno
Reviewed-by-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Quoted 24 lines · haris iqbal
Just a reminder. waiting for a review for the previous patch.
Quoted 17 lines · Md Haris Iqbal
Signed-off-by Md Haris Iqbal <[email protected]> ---
bsd-user/qemu.h| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)bsd-user/qemu.h index renamed from bsd-user/qemu.h +0
-003b502a..5fac42e 100644 ---
a/bsd-user/qemu.h+++b/bsd-user/qemu.h@@ -357,7 +357,7 @@ static inline void *lock_user(int type,abi_ulongguest_addr, long len, int copy
#ifdefDEBUG_REMAP{ void *addr; - addr = malloc(len); +
addr =g_malloc(len); if (copy)memcpy(addr, g2h(guest_addr), len); else @@ -383,7 +383,7 @@ static inline void unlock_user(void*host_ptr,abi_ulongguest_addr, return; if (lenQuoted 1 line
0)
memcpy(g2h(guest_addr), host_ptr, len); -
free(host_ptr); +g_free(host_ptr); #endif }-- 1.9.1
If this is the only patch needing review for the bsd-user code, please put me down as Reviewed by.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQF8BAEBCgBmBQJXKOCTXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kZE0H/06zauEdcv8Y0K3KI3r2ioFS M6nqr/UXjqazqIeArBKDC+cnv47cnwH/x6Udn2on+CY9kR91QyUeG/DKUJdEp6Hs idUuTf3L0W8nhNUUXE9bwVI7H2KWpDzHJ52dnHuSXaQZnBE6Q1AFk0ge+hg+XcCU BsOqEkTAcxchOnvQJgNpMyXofI35QvSXqqaijTozMdGT7iHG0nKpO6KNW11ash2U YEVNs9nkr9I+B+qKPhhgX+v4dAuHSekaEstWbkqqSa4YsmqIylL1MNTpRTbEUSEG fScXKCOy3lANGV6u1sTzLIffR6N3WhkaYCuzYsQ7TQL/TAuYpBrQq7TQt8lb0Do= =qmUg
-----END PGP SIGNATURE-----
Quoted 25 lines · Sean Bruno
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512Quoted 19 lines · haris iqbal
Just a reminder. waiting for a review for the previous patch.
Quoted 15 lines · Md Haris Iqbal
Signed-off-by Md Haris Iqbal <[email protected]> ---
bsd-user/qemu.h| 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)bsd-user/qemu.h index renamed from bsd-user/qemu.h +0
-003b502a..5fac42e 100644 ---
a/bsd-user/qemu.h+++b/bsd-user/qemu.h@@ -357,7 +357,7 @@ static inline void *lock_user(int type,abi_ulongguest_addr, long len, int copy
#ifdefDEBUG_REMAP{ void *addr; - addr = malloc(len); +
addr =g_malloc(len); if (copy)memcpy(addr, g2h(guest_addr), len); else @@ -383,7 +383,7 @@ static inline void unlock_user(void*host_ptr,abi_ulongguest_addr, return; if (lenQuoted 1 line
0)
memcpy(g2h(guest_addr), host_ptr, len); -
free(host_ptr); +g_free(host_ptr); #endif }
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
-- 1.9.1
If this is the only patch needing review for the bsd-user code, please put me down as Reviewed by.
Sorry, I am a newbie. Just to confirm, should I send the patch again with "Reviewed by : Sean Bruno" line?
Quoted 15 lines
Reviewed-by Sean Bruno <[email protected]>-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2iQF8BAEBCgBmBQJXKOCTXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kZE0H/06zauEdcv8Y0K3KI3r2ioFS M6nqr/UXjqazqIeArBKDC+cnv47cnwH/x6Udn2on+CY9kR91QyUeG/DKUJdEp6Hs idUuTf3L0W8nhNUUXE9bwVI7H2KWpDzHJ52dnHuSXaQZnBE6Q1AFk0ge+hg+XcCU BsOqEkTAcxchOnvQJgNpMyXofI35QvSXqqaijTozMdGT7iHG0nKpO6KNW11ash2U YEVNs9nkr9I+B+qKPhhgX+v4dAuHSekaEstWbkqqSa4YsmqIylL1MNTpRTbEUSEG fScXKCOy3lANGV6u1sTzLIffR6N3WhkaYCuzYsQ7TQL/TAuYpBrQq7TQt8lb0Do= =qmUg
-----END PGP SIGNATURE-----
Signature · 6 lines
With regards, Md Haris Iqbal, Placement Coordinator, MTech IT NITK Surathkal, Contact: +91 8861996962
Quoted 6 lines · haris iqbal
Quoted 2 lines · Sean Bruno
If this is the only patch needing review for the bsd-user code, please put me down as Reviewed by.
Sorry, I am a newbie. Just to confirm, should I send the patch again with "Reviewed by : Sean Bruno" line?
No, you don't need to resend. When bsd-user patches are collected up to be applied then the person who does that will apply the reviewed-by tag.
(If you needed to resend a patch for some other reason, then if the patch hasn't changed then you should add the reviewed-by tag when you resend it. But there's no need to resend purely to add the tag.)
thanks
-- PMM
Quoted 8 lines · Peter Maydell
Quoted 6 lines · haris iqbal
Quoted 2 lines · Sean Bruno
If this is the only patch needing review for the bsd-user code, please put me down as Reviewed by.
Sorry, I am a newbie. Just to confirm, should I send the patch again with "Reviewed by : Sean Bruno" line?
Quoted 8 lines
No, you don't need to resend. When bsd-user patches are collected up to be applied then the person who does that will apply the reviewed-by tag.
(If you needed to resend a patch for some other reason, then if the patch hasn't changed then you should add the reviewed-by tag when you resend it. But there's no need to resend purely to add the tag.)
Thanks for the reply, much appreciated.
Quoted 3 lines
thanks
-- PMM
Signature · 6 lines
With regards, Md Haris Iqbal, Placement Coordinator, MTech IT NITK Surathkal, Contact: +91 8861996962