1
0
Fork 0

staging: omap/drm: dmm should return proper errors

Minor error path clean-up.

Signed-off-by: Rob Clark <rob@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
hifive-unleashed-5.1
Rob Clark 2012-03-21 16:40:23 -05:00 committed by Greg Kroah-Hartman
parent 68a75f3f1a
commit 1c3a4dc3d0
1 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ struct tiler_block *tiler_reserve_2d(enum tiler_fmt fmt, uint16_t w,
ret = tcm_reserve_2d(containers[fmt], w, h, align, &block->area);
if (ret) {
kfree(block);
return 0;
return ERR_PTR(-ENOMEM);
}
/* add to allocation list */
@ -371,7 +371,7 @@ struct tiler_block *tiler_reserve_1d(size_t size)
if (tcm_reserve_1d(containers[TILFMT_PAGE], num_pages,
&block->area)) {
kfree(block);
return 0;
return ERR_PTR(-ENOMEM);
}
spin_lock(&omap_dmm->list_lock);