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.18.4 by commit c059665c84feab46b7173d3a1bf36c2fb7f9df86, it was introduced in version v3.9 by commit 190888ac01d059e38ffe77a2291d44cafa9016fb. For more details please see the references link.