Fixed NULL pointer dereference caused by wrong usage of DBG macro.
authorFlorian Pose <fp@igh-essen.com>
Thu, 06 May 2010 11:56:35 +0200
changeset 1927 365a90e93161
parent 1926 b2e097ff4b00
child 1928 e9d5929829ba
child 1989 6aa393418fb3
Fixed NULL pointer dereference caused by wrong usage of DBG macro.
master/fsm_master.c
--- a/master/fsm_master.c	Thu May 06 11:45:58 2010 +0200
+++ b/master/fsm_master.c	Thu May 06 11:56:35 2010 +0200
@@ -1207,7 +1207,7 @@
         }
 
         request->state = EC_INT_REQUEST_SUCCESS;
-        EC_SLAVE_DBG(fsm->slave, 1, "Register request successful.\n");
+        EC_SLAVE_DBG(request->slave, 1, "Register request successful.\n");
     } else {
         request->state = EC_INT_REQUEST_FAILURE;
         EC_MASTER_ERR(master, "Register request failed.\n");