diff options
author | 2019-11-06 10:36:09 +0800 | |
---|---|---|
committer | 2019-11-06 15:33:39 +0000 | |
commit | e9a8ba9769a0e354341bc6cc01b98aadcea1dfe9 (patch) | |
tree | 51c8ac5432e22892130369920d98082d97fb88ad /tools/perf/scripts/python/export-to-postgresql.py | |
parent | spi: add power control when set_cs (diff) | |
download | wireguard-linux-e9a8ba9769a0e354341bc6cc01b98aadcea1dfe9.tar.xz wireguard-linux-e9a8ba9769a0e354341bc6cc01b98aadcea1dfe9.zip |
spi: img-spfi: fix potential double release
The channels spfi->tx_ch and spfi->rx_ch are not set to NULL after they
are released. As a result, they will be released again, either on the
error handling branch in the same function or in the corresponding
remove function, i.e. img_spfi_remove(). This patch fixes the bug by
setting the two members to NULL.
Signed-off-by: Pan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/1573007769-20131-1-git-send-email-bianpan2016@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions