summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-09-10 01:46:03 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-09-10 01:46:03 (GMT)
commitee7d6d4823bd538712bbc269b2598fd40103173a (patch)
tree6470caafae79158829387390e3f867914bd98fb4
parent67822312d2fe799c9e52edacd5954f039509b522 (diff)
downloaddata-provider-master-ee7d6d4823bd538712bbc269b2598fd40103173a.zip
data-provider-master-ee7d6d4823bd538712bbc269b2598fd40103173a.tar.gz
data-provider-master-ee7d6d4823bd538712bbc269b2598fd40103173a.tar.bz2
Fix prevent issue.
Change-Id: I07747c6c1e0a984e597a6dbbea9e71eeab1e4647
-rw-r--r--src/instance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/instance.c b/src/instance.c
index 3bf9e84..0afe99b 100644
--- a/src/instance.c
+++ b/src/instance.c
@@ -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: