diff options
-rw-r--r-- | firmware/buflib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/buflib.c b/firmware/buflib.c index 4551fd8dca..05e489ea14 100644 --- a/firmware/buflib.c +++ b/firmware/buflib.c | |||
@@ -144,7 +144,7 @@ bool buflib_context_relocate(struct buflib_context *ctx, void *buf) | |||
144 | 144 | ||
145 | /* cannot continue if the buffer is not aligned, since we would need | 145 | /* cannot continue if the buffer is not aligned, since we would need |
146 | * to reduce the size of the buffer for aligning */ | 146 | * to reduce the size of the buffer for aligning */ |
147 | if ((uintptr_t)buf & 0x3) | 147 | if (!IS_ALIGNED((uintptr_t)buf, sizeof(union buflib_data))) |
148 | return false; | 148 | return false; |
149 | 149 | ||
150 | /* relocate the handle table entries */ | 150 | /* relocate the handle table entries */ |