aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/platform.c')
-rw-r--r--drivers/base/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index d10230adeb36..81865ee2eff3 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -1259,7 +1259,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
1259 * dev_name() and others to be used before the 1259 * dev_name() and others to be used before the
1260 * rest of the driver core is initialized. 1260 * rest of the driver core is initialized.
1261 */ 1261 */
1262 if (!match->dev.init_name) { 1262 if (!match->dev.init_name && slab_is_available()) {
1263 if (match->id != -1) 1263 if (match->id != -1)
1264 match->dev.init_name = 1264 match->dev.init_name =
1265 kasprintf(GFP_KERNEL, "%s.%d", 1265 kasprintf(GFP_KERNEL, "%s.%d",