[FIX] probe_info struct size value setting during creation 41/49241/2 accepted/tizen/2.4/mobile/20151029.024950 submit/tizen_2.4/20151028.065647 tizen_2.4_mobile_release
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 9 Oct 2015 11:57:46 +0000 (14:57 +0300)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Fri, 9 Oct 2015 12:06:22 +0000 (05:06 -0700)
Change-Id: If26e8fffa85b0b90386e5a5246b6c3e31a851966
Signed-off-by: Vyacheslav Cherkashin <v.cherkashin@samsung.com>
parser/msg_parser.c

index 42b8b0d..045da4a 100644 (file)
@@ -356,7 +356,7 @@ int get_preload_probe(struct msg_buf *mb, struct probe_info *pi)
        }
 
        pi->probe_type = SWAP_PRELOAD_PROBE;
-       pi->size = sizeof(pi->pl_i) + sizeof(pi->probe_type) + sizeof(pi->size);
+       pi->size = 0;
        pi->pl_i.handler = handler;
        pi->pl_i.flags = flags;
 
@@ -384,7 +384,7 @@ void put_preload_probe(struct probe_info *pi)
 int get_get_caller_probe(struct msg_buf *mb, struct probe_info *pi)
 {
        pi->probe_type = SWAP_GET_CALLER;
-       pi->size = sizeof(pi->gc_i);
+       pi->size = 0;
 
        return 0;
 }
@@ -409,7 +409,7 @@ void put_get_caller_probe(struct probe_info *pi)
 int get_get_call_type_probe(struct msg_buf *mb, struct probe_info *pi)
 {
        pi->probe_type = SWAP_GET_CALL_TYPE;
-       pi->size = sizeof(pi->gct_i);
+       pi->size = 0;
 
        return 0;
 }
@@ -434,7 +434,7 @@ void put_get_call_type_probe(struct probe_info *pi)
 int get_write_msg_probe(struct msg_buf *mb, struct probe_info *pi)
 {
        pi->probe_type = SWAP_WRITE_MSG;
-       pi->size = sizeof(pi->wm_i);
+       pi->size = 0;
 
        return 0;
 }