diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 1a9c7878f8649b1df14531f66aa247fd2587e2c8..ea4e6cb29e1394f709f834df066a7659e12b1d2e 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -436,7 +436,7 @@ struct hd_struct *add_partition(struct gendisk *disk, int partno, rcu_assign_pointer(ptbl->part[partno], p); /* suppress uevent if the disk supresses it */ - if (!dev_get_uevent_suppress(pdev)) + if (!dev_get_uevent_suppress(ddev)) kobject_uevent(&pdev->kobj, KOBJ_ADD); return p;