ia64/topology.c: exit cache_add_dev when kobject_init_and_add fails
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 11 Aug 2009 21:52:11 +0000 (14:52 -0700)
committerFenghua Yu <fenghua.yu@intel.com>
Tue, 11 Aug 2009 21:52:11 +0000 (14:52 -0700)
commit5359dffd4396f281c5b77de1acbee6fb1b333b23
tree2f54bb01bc9c721636788a9ff5d4f47ee7c8fc9e
parentbf2a4c7270b9a22243a91ab5efcc47aaf997c66b
ia64/topology.c: exit cache_add_dev when kobject_init_and_add fails

Make cache_add_dev exit sysfs when kobject_init_and_add returns an error.

Signed-off-by: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
arch/ia64/kernel/topology.c