driver: base: fix UAF when driver_attach failed
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.4.198 by commit 5d709f58c743166fe1c6914b9de0ae8868600d9b, it was introduced in version v3.9 by commit 190888ac01d059e38ffe77a2291d44cafa9016fb. For more details please see the references link.