diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-10-11 14:59:22 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-02 09:49:13 +0100 |
commit | d8e5f2f8d507ac717eebef87a3df95ed5c6927b6 (patch) | |
tree | 464e6a373940f2f547f89f66f807346dd30d2aa2 /fs/fuse | |
parent | 1dfea1eeac6499cb2c95d19cd368f6d80998c0d3 (diff) |
spi: bcm-qspi: Fix use after free in bcm_qspi_probe() in error path
commit c0368e4db4a3e8a3dce40f3f621c06e14c560d79 upstream.
There was an inversion in how the error path in bcm_qspi_probe() is done
which would make us trip over a KASAN use-after-free report. Turns out
that qspi->dev_ids does not get allocated until later in the probe
process. Fix this by introducing a new lable: qspi_resource_err which
takes care of cleaning up the SPI master instance.
Fixes: fa236a7ef240 ("spi: bcm-qspi: Add Broadcom MSPI driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/fuse')
0 files changed, 0 insertions, 0 deletions