diff options
| author | 2022-09-20 16:30:31 +0300 | |
|---|---|---|
| committer | 2022-09-20 16:07:15 +0200 | |
| commit | 02743c4091ccfb246f5cdbbe3f44b152d5d12933 (patch) | |
| tree | cd5c6b0a4d074f741e07153419cd4e737a892266 /tools/scripts/ssh:/git@git.zx2c4.com/git: | |
| parent | gpio: mockup: fix NULL pointer dereference when removing debugfs (diff) | |
| download | linux-dev-02743c4091ccfb246f5cdbbe3f44b152d5d12933.tar.xz linux-dev-02743c4091ccfb246f5cdbbe3f44b152d5d12933.zip | |
gpio: mockup: Fix potential resource leakage when register a chip
If creation of software node fails, the locally allocated string
array is left unfreed. Free it on error path.
Fixes: 6fda593f3082 ("gpio: mockup: Convert to use software nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'tools/scripts/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
