This commit is contained in:
Paul Mundt 2010-05-13 18:02:28 +09:00
Родитель 209791b2cc 06fe53beb6
Коммит b9e3fc29c0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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",