extcon: Fix extcongetextcon_dev() error handling
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.47 by commit 4785574f0caf920ff0af587d4ab23f93cd243970. For more details please see the references link.