Skip to content
This repository was archived by the owner on Sep 30, 2025. It is now read-only.

Commit a2e7c03

Browse files
committed
fix kvrealloc
1 parent f60a843 commit a2e7c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/m3_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void * m3_Realloc_Impl (void * i_ptr, size_t i_newSize, size_t i_oldSize)
144144
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0)
145145
void *newPtr = kvrealloc(i_ptr, i_oldSize, i_newSize, GFP_KERNEL);
146146
#else
147-
void *newPtr = kvrealloc(i_ptr, i_oldSize, GFP_KERNEL);
147+
void *newPtr = kvrealloc(i_ptr, i_newSize, GFP_KERNEL);
148148
#endif
149149

150150
if (M3_LIKELY(newPtr))

0 commit comments

Comments
 (0)