leon,ambapp: fixes bad allocation check

Updates #2496 but to close needs to be applied to 4.11 accoring to ticket.
This commit is contained in:
Daniel Hellstrom
2017-08-29 08:44:13 +02:00
parent 360fb2fe75
commit 7f13fae87e
+1 -1
View File
@@ -254,7 +254,7 @@ static int ambapp_scan2(
continue;
apbdev = ambapp_alloc_dev_struct(DEV_APB_SLV);
if (!dev)
if (!apbdev)
return -1;
ambapp_apb_dev_init(apbbase, abus->mmaps,