Use sched_kfree() instead of kmm_free()

This commit is contained in:
Gregory Nutt 2015-05-08 12:03:45 -06:00
parent c35bb693a9
commit 6519dc475d
4 changed files with 6 additions and 6 deletions

View File

@ -537,12 +537,12 @@ static void usbhost_freeclass(FAR struct usbhost_cdcacm_s *usbclass)
{
DEBUGASSERT(usbclass != NULL);
/* Free the class instance (calling sched_kmm_free() in case we are executing
/* Free the class instance (calling sched_kfree() in case we are executing
* from an interrupt handler.
*/
uvdbg("Freeing: %p\n", usbclass);;
kmm_free(usbclass);
sched_kfree(usbclass);
}
#endif

View File

@ -688,7 +688,7 @@ static inline void usbhost_freeclass(FAR struct usbhost_state_s *usbclass)
/* Free the class instance. */
uvdbg("Freeing: %p\n", usbclass);;
kmm_free(usbclass);
sched_kfree(usbclass);
}
/****************************************************************************

View File

@ -548,7 +548,7 @@ static inline void usbhost_freeclass(FAR struct usbhost_state_s *usbclass)
/* Free the class instance. */
uvdbg("Freeing: %p\n", usbclass);;
kmm_free(usbclass);
sched_kfree(usbclass);
}
/****************************************************************************

View File

@ -430,12 +430,12 @@ static inline void usbhost_freeclass(FAR struct usbhost_state_s *usbclass)
{
DEBUGASSERT(usbclass != NULL);
/* Free the class instance (calling sched_kmm_free() in case we are executing
/* Free the class instance (calling sched_kfree() in case we are executing
* from an interrupt handler.
*/
uvdbg("Freeing: %p\n", usbclass);;
kmm_free(usbclass);
sched_kfree(usbclass);
}
#endif