Skip to content

Commit 2731044

Browse files
committed
lk2nd: display: simplefb: Fix argument parsing
The argument list can be much longer now but the buffer wasn't updated to hold as many arguments.
1 parent 53c515b commit 2731044

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lk2nd/display/simplefb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int lk2nd_simplefb_dt_update(void *dtb, const char *cmdline,
2828
struct fbcon_config *fb = fbcon_display();
2929
int ret, resmem_offset, chosen_offset, offset;
3030
uint32_t mem_ph, fb_size;
31-
char tmp[32], args[16];
31+
char tmp[32], args[64];
3232
void *rel_base;
3333

3434
if (!fb)
@@ -41,7 +41,7 @@ static int lk2nd_simplefb_dt_update(void *dtb, const char *cmdline,
4141
return 0;
4242

4343
if (IS_ENABLED(LK2ND_DISPLAY_CONT_SPLASH)) {
44-
if (!strcmp(args, "autorefresh")) {
44+
if (strstr(args, "autorefresh")) {
4545
dprintf(INFO, "simplefb: Enabling autorefresh\n");
4646
mdp_enable_autorefresh(fb);
4747
}

0 commit comments

Comments
 (0)