diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c b/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c index 054c1201..eee32123 100644 --- a/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c +++ b/drivers/gdisp/SSD1322/gdisp_lld_SSD1322.c @@ -67,6 +67,8 @@ LLDSPEC gBool gdisp_lld_init(GDisplay *g) { // The private area is the display surface. g->priv = gfxAlloc(GDISP_SCREEN_HEIGHT * SSD1322_ROW_WIDTH); + if (!g->priv) + return gFalse; // Initialise the board interface init_board(g); |