soundwire: cadence: use directly bus sdw_defer structure
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 19 Jan 2023 07:32:10 +0000 (15:32 +0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 31 Jan 2023 14:29:21 +0000 (19:59 +0530)
commitdd0b9619a21ef77127e6002f9cb2d254c03ceed1
treeadf1e25b8476d207aed6171d16a8bd827ab63fab
parent45cb70f99993f74bb46cef72158f59677dbea318
soundwire: cadence: use directly bus sdw_defer structure

Copying the bus sdw_defer structure into the Cadence internals leads
to using stale pointers and kernel oopses on errors. It's just simpler
and safer to use the bus sdw_defer structure directly.

Link: https://github.com/thesofproject/linux/issues/4056
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230119073211.85979-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/bus.c
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h
include/linux/soundwire/sdw.h