mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 00:41:05 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user