Skip to content

Commit

Permalink
Merge branch 'sh/driver-core'
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Mundt committed May 13, 2010
2 parents 209791b + 06fe53b commit b9e3fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/platform.c
Original file line number Diff line number Diff line change
@@ -1259,7 +1259,7 @@ static int __init early_platform_driver_probe_id(char *class_str,
* dev_name() and others to be used before the
* rest of the driver core is initialized.
*/
if (!match->dev.init_name) {
if (!match->dev.init_name && slab_is_available()) {
if (match->id != -1)
match->dev.init_name =
kasprintf(GFP_KERNEL, "%s.%d",

0 comments on commit b9e3fc2

Please sign in to comment.