commit | 7d7099433d9eaaa5a989a55f1fa354c16a3ad297 | [log] [tgz] |
---|---|---|
author | Sean Fu <fxinrong@gmail.com> | Mon Sep 11 08:33:21 2017 +0800 |
committer | Thomas Gleixner <tglx@linutronix.de> | Mon Sep 25 09:36:16 2017 +0200 |
tree | 256e2478d50bb3f68bae7892f763c2843d7d69d3 | |
parent | a3c4fb7c9c2ebfd50b8c60f6c069932bb319bc37 [diff] |
x86/sysfs: Fix off-by-one error in loop termination An off-by-one error in loop terminantion conditions in create_setup_data_nodes() will lead to memory leak when create_setup_data_node() failed. Signed-off-by: Sean Fu <fxinrong@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1505090001-1157-1-git-send-email-fxinrong@gmail.com