mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xvmalloc: adjust XVFREE() ordering
Whatc4f427ec87("xen: Swap order of actions in the FREE*() macros") did should have been done right away when XVFREE() was introduced. Fixes:9102fcd957("mm: introduce xvmalloc() et al and use for grant table allocations") Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Roger Pau Monné <roger.pau@citrix.com> master commit:96ffccef5amaster date: 2026-05-06 15:11:11 +0200
This commit is contained in:
1 parent
d006fa109f
commit
a99d16079d
1 file changed
+2
-1
@@ -61,8 +61,9 @@ void *_xvrealloc(void *va, size_t size, unsigned int align);
|
||||
|
||||
/* Free an allocation, and zero the pointer to it. */
|
||||
#define XVFREE(p) do { \
|
||||
xvfree(p); \
|
||||
void *_ptr_ = (p); \
|
||||
(p) = NULL; \
|
||||
xvfree(_ptr_); \
|
||||
} while ( false )
|
||||
|
||||
static inline void *_xvmalloc_array(
|
||||
|
||||