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.15.46 by commit 978e3d023256bfaf34a0033d40c94e8a8e70cf3c. For more details please see the references link.