Skip to content

Commit b9e3fc2

Browse files
committed
Merge branch 'sh/driver-core'
2 parents 209791b + 06fe53b commit b9e3fc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/base/platform.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
12591259
* dev_name() and others to be used before the
12601260
* rest of the driver core is initialized.
12611261
*/
1262-
if (!match->dev.init_name) {
1262+
if (!match->dev.init_name && slab_is_available()) {
12631263
if (match->id != -1)
12641264
match->dev.init_name =
12651265
kasprintf(GFP_KERNEL, "%s.%d",

0 commit comments

Comments
 (0)