pussuw commented on code in PR #7618:
URL: https://github.com/apache/incubator-nuttx/pull/7618#discussion_r1028041268


##########
mm/shm/shmdt.c:
##########
@@ -116,8 +115,7 @@ int shmdt(FAR const void *shmaddr)
 
   /* Free the virtual address space */
 
-  gran_free(group->tg_shm.gs_handle, (FAR void *)shmaddr,
-            region->sr_ds.shm_segsz);
+  shm_free(group, (FAR void *)shmaddr, region->sr_ds.shm_segsz);

Review Comment:
   Cannot, they are not of the same type. shmaddr is FAR const void * while 
shm_free eats FAR void *



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to