[rtems commit] leon,ambapp: fixes bad allocation check
Daniel Hellstrom
danielh at rtems.org
Tue Aug 29 07:09:27 UTC 2017
Module: rtems
Branch: master
Commit: 7f13fae87eb923adeb9df70d62947cfe911556ba
Changeset: http://git.rtems.org/rtems/commit/?id=7f13fae87eb923adeb9df70d62947cfe911556ba
Author: Daniel Hellstrom <daniel at gaisler.com>
Date: Tue Aug 22 12:51:18 2017 +0200
leon,ambapp: fixes bad allocation check
Updates #2496 but to close needs to be applied to 4.11 accoring to ticket.
---
c/src/lib/libbsp/sparc/shared/amba/ambapp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/sparc/shared/amba/ambapp.c b/c/src/lib/libbsp/sparc/shared/amba/ambapp.c
index e4f1aac..e3c777a 100644
--- a/c/src/lib/libbsp/sparc/shared/amba/ambapp.c
+++ b/c/src/lib/libbsp/sparc/shared/amba/ambapp.c
@@ -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,
More information about the vc
mailing list