[PATCH CVE-2024-36015 1/1] ppdev: Add an error check in register_device