Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a98245bc authored by Channagoud Kadabi's avatar Channagoud Kadabi
Browse files

vfb: Fix parsing of command line args



The bpp and memsize values need to be extracted based on the command
line arguments. Use strncmp to compare only the string part to extract
the values.

Change-Id: I51ec868d0f636cb755318f935534eb23d98e3695
Signed-off-by: default avatarChannagoud Kadabi <ckadabi@codeaurora.org>
parent 58eb1df2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -399,10 +399,10 @@ static int __init vfb_setup(char *options)
		/* Test disable for backwards compatibility */
		if (!strcmp(this_opt, "disable"))
			vfb_enable = 0;
		else if (!strcmp(this_opt, "bpp=")) {
		else if (!strncmp(this_opt, "bpp=", 4)) {
			if (kstrtoint(this_opt + 4, 0, &bpp) < 0)
				bpp = 8;
		} else if (!strcmp(this_opt, "memsize=")) {
		} else if (!strncmp(this_opt, "memsize=", 8)) {
			if (kstrtoul(this_opt + 8, 0, &videomemorysize) < 0)
				videomemorysize = VIDEOMEMSIZE;
		} else