drm/vc4: fix error code in vc4_check_tex_size()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Jun 2022 12:25:15 +0000 (15:25 +0300)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 22 Jun 2022 14:41:30 +0000 (16:41 +0200)
commit3026b5ca06fa872147f9726ca7c1f658bae71abf
tree6f3f220455c51ea1fb0280c19a8442461a3019b0
parentf5aa16807aa4f99293044944590dde81364f434f
drm/vc4: fix error code in vc4_check_tex_size()

The vc4_check_tex_size() function is supposed to return false on error
but this error path accidentally returns -ENODEV (which means true).

Fixes: 30f8c74ca9b7 ("drm/vc4: Warn if some v3d code is run on BCM2711")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/YrMKK89/viQiaiAg@kili
drivers/gpu/drm/vc4/vc4_validate.c