From: "Ainux.Wang" <ainux.w...@gmail.com>

There is should a status when do not get edid.

Signed-off-by: Ainux.Wang <ainux.w...@gmail.com>
---
 drivers/gpu/drm/ast/ast_mode.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index e5996ae03c49..05df48b3d223 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -1231,8 +1231,10 @@ static int ast_get_modes(struct drm_connector *connector)
                ret = drm_add_edid_modes(connector, edid);
                kfree(edid);
                return ret;
-       } else
+       } else {
                drm_connector_update_edid_property(&ast_connector->base, NULL);
+               return -ENXIO;
+       }
        return 0;
 }
 
-- 
2.18.1

Reply via email to