[FIX] Probe info size init
authorAlexander Aksenov <a.aksenov@samsung.com>
Thu, 13 Nov 2014 13:26:28 +0000 (16:26 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Thu, 13 Nov 2014 13:26:28 +0000 (16:26 +0300)
Change-Id: I491eef3afcc3562aff5b144efa5dd6396b3398d5
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
parser/us_inst.c

index b36edba..3266a61 100644 (file)
@@ -79,9 +79,9 @@ static int mod_func_inst(struct func_inst_data *func, struct pf_group *pfg,
 
                /* ARM toolchain hates good style initialization of struct with union */
                probe_i.probe_type = SWAP_RETPROBE;
+               probe_i.size = 0;
                probe_i.rp_i.args = func->args;
                probe_i.rp_i.ret_type = func->ret_type;
-               probe_i.rp_i.size = 0;
                ret = pf_register_probe(pfg, dentry, func->addr, &probe_i);
                break;
        }