[PATCH] driver: base: fix UAF when driver_attach failed