diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-06-11 15:14:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-30 14:39:35 -0700 |
commit | 6bfa23bd0b93d00e489ed1ec9670f8d780d003ae (patch) | |
tree | b580c942b12acb2476e37b548c041acb74dbe084 | |
parent | 1c517c243cc762ac9d926ff5afd042d17bcf063b (diff) |
partitions: fix broken uevent_suppress conversion
commit f8c73c790c588fd70fda1632c8927a87b3d31dcd upstream.
git commit f67f129e "Driver core: implement uevent suppress in kobject"
contains this chunk for fs/partitions/check.c:
/* suppress uevent if the disk supresses it */
- if (!ddev->uevent_suppress)
+ if (!dev_get_uevent_suppress(pdev))
kobject_uevent(&pdev->kobj, KOBJ_ADD);
However that should have been
- if (!ddev->uevent_suppress)
+ if (!dev_get_uevent_suppress(ddev))
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | fs/partitions/check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 99e33ef40be..763c9e281d1 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c @@ -426,7 +426,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; |