aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-dspi.c
diff options
context:
space:
mode:
authorZhenzhong Duan <[email protected]>2020-06-18 03:21:25 +0000
committerMark Brown <[email protected]>2020-06-18 16:47:00 +0000
commit06096cc6c5a84ced929634b0d79376b94c65a4bd (patch)
tree20308a74b1a841161edebc9abcf1f566bfae01ca /drivers/spi/spi-fsl-dspi.c
parentspi: spidev: fix a race between spidev_release and spidev_remove (diff)
downloadkernel-06096cc6c5a84ced929634b0d79376b94c65a4bd.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/spi/spi-fsl-dspi.c')
0 files changed, 0 insertions, 0 deletions