summaryrefslogtreecommitdiff
path: root/cpukit/include/rtems/rtems/partdata.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-10 12:42:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-08-10 12:42:11 +0200
commita625519c45d9b3b449793108bb7e614eee8e0ddc (patch)
tree2e7aedd009ba73680a648b52e9808fafcd8ad251 /cpukit/include/rtems/rtems/partdata.h
parentd43b205e5995640d5eacdf6cb30c75b55499e441 (diff)
rtems: Fix rtems_partition_return_buffer()
The rtems_partition_return_buffer() wrongly accepted which were exactly at the buffer area end. Use the buffer area limit address for the range checking. Close #4490.
Diffstat (limited to 'cpukit/include/rtems/rtems/partdata.h')
-rw-r--r--cpukit/include/rtems/rtems/partdata.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/include/rtems/rtems/partdata.h b/cpukit/include/rtems/rtems/partdata.h
index 4f4132ac6b..4c4eca3d17 100644
--- a/cpukit/include/rtems/rtems/partdata.h
+++ b/cpukit/include/rtems/rtems/partdata.h
@@ -50,15 +50,14 @@ typedef struct {
#endif
/**
- * @brief This member contains the physical starting address of the buffer
- * area.
+ * @brief This member contains the base address of the buffer area.
*/
- void *starting_address;
+ const void *base_address;
/**
- * @brief This member contains the size of the buffer area in bytes.
+ * @brief This member contains the limit address of the buffer area.
*/
- uintptr_t length;
+ const void *limit_address;
/**
* @brief This member contains the size of each buffer in bytes.