resolve termination of crash if it doesn't have display 65/250365/1
authordyamy-lee <dyamy.lee@samsung.com>
Tue, 22 Dec 2020 05:21:41 +0000 (14:21 +0900)
committerdyamy-lee <dyamy.lee@samsung.com>
Thu, 24 Dec 2020 02:54:41 +0000 (11:54 +0900)
Change-Id: Ie73a4a093699d8a30be2270931f49d26ee779c10

base/base_gui_direct.c
fota_gui_wearable/fota_gr_direct_ro_wearable.c

index 5acee0aa8ad16547db37ec0fb3914b7217e94364..b951bed082dde3f8eb40d9c541d812b13812ab2a 100644 (file)
@@ -615,8 +615,10 @@ void _get_rotate(void)
 int fota_gr_direct_init(void)
 {
        /* open display interface */
-       if (fb_open(&s_fbi) < 0)
+       if (fb_open(&s_fbi) < 0) {
                LOG("fb_open failed \n");
+               return -1;
+       }
 
        _get_rotate();
        __init_screen(&s_fbi);
index eeb4d901fa115616ab59de008cf47a2261a232cc..8dc2ccf8a05d83aa80b25f73bf19d4f1e6349be4 100644 (file)
@@ -477,8 +477,10 @@ void fota_gr_direct_clear_screen(u32 color)
 int fota_gr_direct_init(void)
 {
        /* open display interface */
-       if (fb_open(&s_fbi) < 0)
+       if (fb_open(&s_fbi) < 0) {
                LOG("fb_open failed \n");
+               return -1;
+       }
 
        __init_screen(&s_fbi);