diff options
author | 2022-06-20 16:07:23 +0200 | |
---|---|---|
committer | 2022-06-20 18:01:16 +0200 | |
commit | 229e73d46994f15314f58b2d39bf952111d89193 (patch) | |
tree | 689f840a1e5e2e8bdf113bcaec0e6563813ba951 /scripts/generate_rust_analyzer.py | |
parent | Linux 5.19-rc3 (diff) | |
download | wireguard-linux-229e73d46994f15314f58b2d39bf952111d89193.tar.xz wireguard-linux-229e73d46994f15314f58b2d39bf952111d89193.zip |
x86/pmem: Fix platform-device leak in error path
Make sure to free the platform device in the unlikely event that
registration fails.
Fixes: 7a67832c7e44 ("libnvdimm, e820: make CONFIG_X86_PMEM_LEGACY a tristate option")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220620140723.9810-1-johan@kernel.org
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions