mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] intel_rdt: fix a build warnning
@ 2016-11-03 21:09 Shaohua Li
  2016-11-03 21:09 ` [PATCH 2/2] intel_rdt: export min_cbm_bits Shaohua Li
  2016-11-07 11:52 ` [tip:x86/cache] x86/intel_rdt: Propagate error in rdt_mount() properly tip-bot for Shaohua Li
  0 siblings, 2 replies; 4+ messages in thread
From: Shaohua Li @ 2016-11-03 21:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: fenghua.yu, tony.luck, tglx

gcc complains:
"warning: ‘dentry’ may be used uninitialized in this function"

Signed-off-by: Shaohua Li <shli@fb.com>
---
 arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
index a90ad22..e66c7a5 100644
--- a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
+++ b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c
@@ -691,8 +691,10 @@ static struct dentry *rdt_mount(struct file_system_type *fs_type,
 	closid_init();
 
 	ret = rdtgroup_create_info_dir(rdtgroup_default.kn);
-	if (ret)
+	if (ret) {
+		dentry = ERR_PTR(ret);
 		goto out_cdp;
+	}
 
 	dentry = kernfs_mount(fs_type, flags, rdt_root,
 			      RDTGROUP_SUPER_MAGIC, NULL);
-- 
2.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-07 11:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-03 21:09 [PATCH 1/2] intel_rdt: fix a build warnning Shaohua Li
2016-11-03 21:09 ` [PATCH 2/2] intel_rdt: export min_cbm_bits Shaohua Li
2016-11-07 11:53   ` [tip:x86/cache] x86/intel_rdt: Export the minimum number of set mask bits in sysfs tip-bot for Shaohua Li
2016-11-07 11:52 ` [tip:x86/cache] x86/intel_rdt: Propagate error in rdt_mount() properly tip-bot for Shaohua Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome