Skip to content

Commit

Permalink
i915: zero new nodes in init_hash_table
Browse files Browse the repository at this point in the history
  • Loading branch information
emaste committed Jan 27, 2024
1 parent 1af4c68 commit b6ecd6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/i915_cmd_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ static int init_hash_table(struct intel_engine_cs *engine,
if (!desc_node)
return -ENOMEM;

memset(desc_node, 0, sizeof(*desc_node));
desc_node->desc = desc;
hash_add(engine->cmd_hash, &desc_node->node,
cmd_header_key(desc->cmd.value));
Expand Down

0 comments on commit b6ecd6f

Please sign in to comment.