Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c2d331a authored by Ravi Gummadidala's avatar Ravi Gummadidala
Browse files

msm: ipa: fix use after free error



This commit is required for program correctness

Change-Id: Icf1c42b3a9e773eddf16af5b9caa68871ffd0d77
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent b24bc2f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -505,10 +505,10 @@ int ipa_reset_hdr(void)
		}
		list_del(&entry->link);
		entry->cookie = 0;
		kmem_cache_free(ipa_ctx->hdr_cache, entry);

		/* remove the handle from the database */
		ipa_id_remove(entry->id);
		kmem_cache_free(ipa_ctx->hdr_cache, entry);

	}
	for (i = 0; i < IPA_HDR_BIN_MAX; i++) {