Skip to content

Commit

Permalink
core: bugfix mobj_virt
Browse files Browse the repository at this point in the history
Prior to this patch is mobj_virt using mobj_phys_ops instead of the
expected mobj_virt_ops. This patch fixes mobj_virt to use mobj_virt_ops.

Fixes: 0dcfa56 ("core: introduce MOBJ abstraction")
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
jenswi-linaro committed Jan 20, 2017
1 parent 4e5d94d commit 3958b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/arch/arm/mm/mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static void mobj_virt_assert_type(struct mobj *mobj __maybe_unused)
assert(mobj->ops == &mobj_virt_ops);
}

struct mobj mobj_virt = { .ops = &mobj_phys_ops, .size = SIZE_MAX };
struct mobj mobj_virt = { .ops = &mobj_virt_ops, .size = SIZE_MAX };

/*
* mobj_mm implementation
Expand Down

0 comments on commit 3958b8b

Please sign in to comment.