summaryrefslogtreecommitdiffstats
path: root/firmware/rolo.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r--firmware/rolo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c
index 50f3d68183..5cc4f1d212 100644
--- a/firmware/rolo.c
+++ b/firmware/rolo.c
@@ -243,6 +243,12 @@ int rolo_load(const char* filename)
/* get the system buffer. release only in case of error, otherwise
* we don't return anyway */
rolo_handle = core_alloc_maximum("rolo", &filebuf_size, NULL);
+ if (rolo_handle < 0)
+ {
+ splash(HZ, "Rolo Failed - OOM");
+ return -1;
+ }
+
filebuf = core_get_data(rolo_handle);
err = LOAD_FIRMWARE(filebuf, filename, filebuf_size);