summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2019-11-06 10:36:09 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 13:34:14 +0100
commitb32838b21ff7503b75336926a4bd3f34247521d2 (patch)
tree4ea951118974f13f5f40b4b82f25b0b0dc789e67 /include/linux/debugobjects.h
parent901184cf8cbafaf2802044141b8b6832924f4fe7 (diff)
spi: img-spfi: fix potential double release
[ Upstream commit e9a8ba9769a0e354341bc6cc01b98aadcea1dfe9 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions