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.18.4 by commit e7c18d5a53cd9352f44b286df462989a7cd670cd. For more details please see the references link.