fixed kernel oops bug in ec_fsm_coe_down_response (Blame the C Compiler)
authorMartin Troxler <ch1010277@ch10pc446>
Thu, 31 Mar 2011 14:47:42 +0200
changeset 2047 f4266c6fce7c
parent 2046 4cf0161c445a
child 2048 25cc3a272cad
fixed kernel oops bug in ec_fsm_coe_down_response (Blame the C Compiler)
master/fsm_coe.c
--- a/master/fsm_coe.c	Mon Mar 14 16:57:47 2011 +0100
+++ b/master/fsm_coe.c	Thu Mar 31 14:47:42 2011 +0200
@@ -1406,7 +1406,7 @@
 void ec_fsm_coe_down_response(ec_fsm_coe_t *fsm /**< finite state machine */)
 {
     ec_mailbox_t *mbox = fsm->mbox;
-    ec_datagram_t *datagram = datagram;
+    ec_datagram_t *datagram = fsm->mbox->datagram;
     ec_slave_t *slave = fsm->slave;
     uint8_t *data, mbox_prot;
     size_t rec_size;