drm/plane: Move range check for format_count earlier
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v5.18.3 by commit ad6dd7a2bac86118985c7b3426e175b9d3c1ec4f. For more details please see the references link.