Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: spi-zynqmp-gqspi: Fix call trace during QSPI suspend
During GQSPI diver probe a spi_controller instance is passed to platform_set_drvdata( ) API. But in zynqmp_qspi_suspend( ) API the return value of dev_get_drvdata(dev) is assigned to zynqmp_qspi instance instead of spi_controller instance. This results in invalid pointer dereferencing and causes kernel crash during QSPI suspend. Fixed the issue by assigning the return value of dev_get_drvdata(dev) to spi_controller instance in zynqmp_qspi_suspend API & then retrieving zynqmp_qspi instance from spi_controller instance. Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
- Loading branch information