Fix prevent issue.
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 10 Sep 2013 01:46:03 +0000 (10:46 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 10 Sep 2013 01:46:03 +0000 (10:46 +0900)
Change-Id: I07747c6c1e0a984e597a6dbbea9e71eeab1e4647

src/instance.c

index 3bf9e84..0afe99b 100644 (file)
@@ -1304,13 +1304,13 @@ HAPI int instance_reload(struct inst_info *inst, enum instance_destroy_type type
        struct packet *packet;
        int ret;
 
-       DbgPrint("Reload instance (%s)\n", instance_id(inst));
-
        if (!inst) {
                ErrPrint("Invalid instance handle\n");
                return LB_STATUS_ERROR_INVALID;
        }
 
+       DbgPrint("Reload instance (%s)\n", instance_id(inst));
+
        switch (inst->state) {
        case INST_REQUEST_TO_ACTIVATE:
        case INST_REQUEST_TO_REACTIVATE: