Commit 000398d1 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

sunxi: Fix segfault when there is no "fbdev" option in xorg.conf



Just use "/dev/fb0" by default.
Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent 1cd5f084
...@@ -46,6 +46,10 @@ sunxi_disp_t *sunxi_disp_init(const char *device, void *xserver_fbmem) ...@@ -46,6 +46,10 @@ sunxi_disp_t *sunxi_disp_init(const char *device, void *xserver_fbmem)
int gfx_layer_size; int gfx_layer_size;
int ovl_layer_size; int ovl_layer_size;
/* use /dev/fb0 by default */
if (!device)
device = "/dev/fb0";
if (strcmp(device, "/dev/fb0") == 0) { if (strcmp(device, "/dev/fb0") == 0) {
ctx->fb_id = 0; ctx->fb_id = 0;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment