[PATCH 2/2] driver core: platform: avoid use-after-free on pdev->name