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