xvmalloc: adjust XVFREE() ordering

What c4f427ec87 ("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>
This commit is contained in:
Jan Beulich committed 2026-05-06 15:11:11 +02:00
1 parent e8c1feab33
commit 96ffccef5a
1 file changed
+2 -1
+2 -1
View File
@@ -71,8 +71,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(
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.