mirror of
https://github.com/commaai/agnos-kernel-sdm845.git
synced 2026-06-08 11:24:51 +08:00
spi: spi-geni-qcom: Fix slab out of bounds error
Passing incorrect argument to pm_runtime_status_suspended function is causing slab out of bounds error. Pass structure device type pointer as argument to pm_runtime_status_suspended. Change-Id: I59df6574496b9228c9238fe65673060d4ca141ef Signed-off-by: Prudhvi Yarlagadda <pyarlaga@codeaurora.org>
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
408840624e
commit
eaa7de2e21
@@ -1234,12 +1234,12 @@ static void geni_spi_handle_rx(struct spi_geni_master *mas)
|
||||
mas->rx_rem_bytes -= rx_bytes;
|
||||
}
|
||||
|
||||
static irqreturn_t geni_spi_irq(int irq, void *dev)
|
||||
static irqreturn_t geni_spi_irq(int irq, void *data)
|
||||
{
|
||||
struct spi_geni_master *mas = dev;
|
||||
struct spi_geni_master *mas = data;
|
||||
u32 m_irq = 0;
|
||||
|
||||
if (pm_runtime_status_suspended(dev)) {
|
||||
if (pm_runtime_status_suspended(mas->dev)) {
|
||||
GENI_SE_DBG(mas->ipc, false, mas->dev,
|
||||
"%s: device is suspended\n", __func__);
|
||||
goto exit_geni_spi_irq;
|
||||
|
||||
Reference in New Issue
Block a user