drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
PATCH v2 1/1 drm/omap: Fix usage of IS_ERR_OR_NULL and PTR_ERR
Return -ENOMEM if dmm_txn_init cannot allocate a refill engine.
v2: Fix typing issue seen with newer compilers
Signed-off-by Andy Gross <[email protected]>
--- drivers/staging/omapdrm/omap_dmm_tiler.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/omapdrm/omap_dmm_tiler.c +1 -1
@@ -279,7 +279,7 @@ static int fill(struct tcm_area *area, struct page **pages, txn =dmm_txn_init (omap_dmm, area->tcm);if (IS_ERR_OR_NULL (txn)) -return PTR_ERR (txn); +return -ENOMEM ;tcm_for_each_slice (slice, *area, area_s) {struct pat_area p_area = {
Signature · 1 line
1.7.5.4
Quoted 5 lines · Andy Gross
Return
-ENOMEMifdmm_txn_initcannot allocate a refill engine.v2: Fix typing issue seen with newer compilers
Signed-off-by Andy Gross <[email protected]>
Signed-off-by Rob Clark <[email protected]
Quoted 24 lines
--- drivers/staging/omapdrm/omap_dmm_tiler.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/staging/omapdrm/omap_dmm_tiler.c +1
-2@@ -279,7 +279,7 @@ static int fill(struct tcm_area *area, struct page **pages, txn =dmm_txn_init (omap_dmm, area->tcm);if (IS_ERR_OR_NULL (txn)) -return PTR_ERR (txn); +return -ENOMEM ;tcm_for_each_slice (slice, *area, area_s) {struct pat_area p_area = { --1.7.5.4
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 9 lines · Andy Gross
Return
-ENOMEMifdmm_txn_initcannot allocate a refill engine.v2: Fix typing issue seen with newer compilers
Signed-off-by Andy Gross <[email protected]>Signed-off-by Rob Clark <[email protected]>--- drivers/staging/omapdrm/omap_dmm_tiler.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
This doesn't apply anymore, care to refresh it against my latest tree?
thanks,
greg k-h