Skip to content

Commit

Permalink
Protect BMM_DUMP with the global mutex
Browse files Browse the repository at this point in the history
Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
  • Loading branch information
rabeeh committed Mar 29, 2013
1 parent 1be2c76 commit b9fc5ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/misc/bmm_drv.c
Expand Up @@ -159,10 +159,12 @@ static void bmm_dump_list(struct list_head *head)

static void bmm_dump_all(void)
{
mutex_lock(&bmm_mutex);
pr_info("free block list:\n");
bmm_dump_list(&(bmm_free_block.list));
pr_info("used block list:\n");
bmm_dump_list(&(bmm_used_block.list));
mutex_unlock(&bmm_mutex);
}

static struct bmm_block_t *bmm_search_vaddr(struct list_head *head,
Expand Down

0 comments on commit b9fc5ff

Please sign in to comment.