This patchset fixes two possible memory leaks if of_device_register() returns error. v1 -> v2: add fix tag. Yang Yingliang (2): sparc/of: fix possible memory leak in scan_one_device() sparc64/of: fix possible memory leak in scan_one_device() arch/sparc/kernel/of_device_32.c | 8 +++++++- arch/sparc/kernel/of_device_64.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) -- 2.25.1