mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 22:05:54 +08:00
fs/shm: update pointer arithmetic logic
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
d35d8b4a12
commit
2c972bd402
@@ -45,7 +45,7 @@ FAR struct shmfs_object_s *shmfs_alloc_object(size_t length)
|
||||
object = kmm_zalloc(sizeof(struct shmfs_object_s) + length);
|
||||
if (object)
|
||||
{
|
||||
object->paddr = (FAR char *)object + sizeof(struct shmfs_object_s);
|
||||
object->paddr = (FAR char *)(object + 1);
|
||||
allocated = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user