add missing kfree() for channel lookup table

This commit is contained in:
NAKAMURA Gou
2016-01-06 14:56:52 +09:00
parent 75c6a94839
commit 914faf042d
3 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,13 @@ int init_peer_channel_registry(struct mcctrl_usrdata *ud)
return 0;
}
void destroy_peer_channel_registry(struct mcctrl_usrdata *ud)
{
kfree(ud->keys);
ud->keys = NULL;
return;
}
int register_peer_channel(struct mcctrl_usrdata *ud, void *key, struct mcctrl_channel *ch)
{
int cpu;