switch (app_type) {
case AT_TIZEN_NATIVE_APP:
+ case AT_TIZEN_WEB_APP:
case AT_COMMON_EXEC:
ai->tgid = 0;
break;
case AT_PID: {
- u32 tgid;
- ret = str_to_u32(ta_id, &tgid);
- if (ret) {
- print_err("converting string to PID, str='%s'\n", ta_id);
- goto free_ai;
+ u32 tgid = 0;
+
+ if (*ta_id != '\0') {
+ ret = str_to_u32(ta_id, &tgid);
+ if (ret) {
+ print_err("converting string to PID, "
+ "str='%s'\n", ta_id);
+ goto free_ai;
+ }
}
ai->tgid = tgid;
print_parse_debug("func count:");
if (get_u32(mb, &cnt)) {
print_err("failed to read count of functions\n");
- return NULL;
+ goto free_path;
}
if (remained_mb(mb) / MIN_SIZE_FUNC_INST < cnt) {
print_err("to match count of functions(%u)\n", cnt);
- return NULL;
+ goto free_path;
}
li = kmalloc(sizeof(*li), GFP_KERNEL);