[PATCH 6.4 375/737] drm/mediatek: Add cnt checking for coverity issue