aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fb/vesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index 2142578a87210..e0990cac973b4 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -986,9 +986,9 @@ vesa_bios_init(void)
x86bios_free(vmbuf, sizeof(*buf));
+ vesa_state_buf_size = vesa_bios_state_buf_size();
vesa_palette = x86bios_alloc(&vesa_palette_offs,
VESA_PALETTE_SIZE + vesa_state_buf_size, M_WAITOK);
- vesa_state_buf_size = vesa_bios_state_buf_size();
if (vesa_state_buf_size > 0) {
vesa_state_buf = vesa_palette + VESA_PALETTE_SIZE;
vesa_state_buf_offs = vesa_palette_offs + VESA_PALETTE_SIZE;