[PATCH 5.10 043/172] driver: base: fix UAF when driver_attach failed