Files
linux/drivers/spi
Uwe Kleine-König ea4e289c28 spi: trigger trace event for message-done before mesg->complete
[ Upstream commit 391949b6f0 ]

With spidev the mesg->complete callback points to spidev_complete.
Calling this unblocks spidev_sync and so spidev_sync_write finishes. As
the struct spi_message just read is a local variable in
spidev_sync_write and recording the trace event accesses this message
the recording is better done first. The same can happen for
spidev_sync_read.

This fixes an oops observed on a 3.14-rt system with spidev activity
after

	echo 1 > /sys/kernel/debug/tracing/events/spi/enable

.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
2015-04-16 20:13:13 -04:00
..
2014-04-14 20:44:15 +01:00
2015-02-05 22:36:00 -08:00
2014-09-02 11:47:12 +01:00
2015-02-11 15:00:51 +08:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2014-07-07 12:50:52 +02:00
2014-09-03 19:30:27 +01:00