Skip to content
Snippets Groups Projects
Commit bf8053a2 authored by Lina Versace's avatar Lina Versace
Browse files

intel: Return early if miptree allocation fails


If allocation fails in intel_miptree_create_internl(), don't proceed to
dereference the miptree. Return an early NULL.

Fixes static analysis error reported by Klocwork.

Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
Reviewed-by: default avatarAnuj Phogat <anuj.phogat@gmail.com>
Signed-off-by: default avatarChad Versace <chad.versace@linux.intel.com>
(backport of commit 6b676e66)
parent 94bc9aca
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment