mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-16 14:38:49 +00:00
omapfb: Return error code when applying overlay settings fails
the check of the return code is missing, user space does not get notified about the error condition: omapdss OVERLAY error: overlay 2 horizontally not inside the display area (403 + 800 >= 800) omapdss APPLY error: failed to apply settings: illegal configuration. Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
a2408154a1
commit
811fbb1f58
@ -137,8 +137,11 @@ static int omapfb_setup_plane(struct fb_info *fbi, struct omapfb_plane_info *pi)
|
|||||||
goto undo;
|
goto undo;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ovl->manager)
|
if (ovl->manager) {
|
||||||
ovl->manager->apply(ovl->manager);
|
r = ovl->manager->apply(ovl->manager);
|
||||||
|
if (r)
|
||||||
|
goto undo;
|
||||||
|
}
|
||||||
|
|
||||||
if (pi->enabled) {
|
if (pi->enabled) {
|
||||||
r = ovl->enable(ovl);
|
r = ovl->enable(ovl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user