diff options
author | Zhenzhong Duan <zhenzhong.duan@gmail.com> | 2020-06-18 11:21:25 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-18 17:47:00 +0100 |
commit | 06096cc6c5a84ced929634b0d79376b94c65a4bd (patch) | |
tree | 20308a74b1a841161edebc9abcf1f566bfae01ca /tools/lib | |
parent | abd42781c3d2155868821f1b947ae45bbc33330d (diff) | |
download | linux-stable-06096cc6c5a84ced929634b0d79376b94c65a4bd.tar.gz linux-stable-06096cc6c5a84ced929634b0d79376b94c65a4bd.tar.bz2 linux-stable-06096cc6c5a84ced929634b0d79376b94c65a4bd.zip |
spi: spidev: fix a potential use-after-free in spidev_release()
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>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions