diff options
| author | Zhenzhong Duan <zhenzhong.duan@gmail.com> | 2020-06-18 11:21:25 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-22 09:10:01 +0200 |
| commit | 35d6f9af1654a2ea428541ec61a6092bbf2a10f1 (patch) | |
| tree | fbdafe23a1b90c814425742caa64a731efa139ea /scripts/objdiff | |
| parent | d8c4753285ae9740a48c9d81027395ef2f48b346 (diff) | |
spi: spidev: fix a potential use-after-free in spidev_release()
[ Upstream commit 06096cc6c5a84ced929634b0d79376b94c65a4bd ]
If an spi device is unbounded from the driver before the release
process, there will be an NULL pointer reference when it's
referenced in spi_slave_abort().
Fix it by checking it's already freed before reference.
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
Link: https://lore.kernel.org/r/20200618032125.4650-2-zhenzhong.duan@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
