Signed-off-by: Russ Gorby <[email protected]>
---
RRG: w/o this fix the controller driver may erroneously believe that
I/O is pending and debug code during module unload may call the
interrupt handler and follow interrupt-driven I/O code path
to its detrement
drivers/spi/pw_spi3.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/spi/pw_spi3.c b/drivers/spi/pw_spi3.c
index 47281f0..61f4d27 100644
--- a/drivers/spi/pw_spi3.c
+++ b/drivers/spi/pw_spi3.c
@@ -350,6 +350,7 @@ static void giveback(struct driver_data *drv_data)
msg->state = NULL;
if (msg->complete)
msg->complete(msg->context);
+ drv_data->cur_msg = NULL;
}
static bool chan_filter(struct dma_chan *chan, void *param)
--
1.6.0.6
_______________________________________________
MeeGo-kernel mailing list
[email protected]
http://lists.meego.com/listinfo/meego-kernel