CyberRota Analysis
AI-GeneratedA vulnerability in the Linux kernel affects the mana driver, where the queue ID is improperly initialized, potentially leading to resource management issues if the creation of a work queue fails. This flaw can result in silent failures and resource leaks, impacting system stability and performance. Linux system administrators and developers utilizing the mana driver should prioritize addressing this issue to ensure robust resource handling and prevent operational disruptions.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: net: mana: initialize gdma queue id to INVALID_QUEUE_ID mana_gd_create_mana_wq_cq() leaves queue->id as 0 (from kzalloc_obj()) until mana_create_wq_obj() assigns the firmware-returned id. If creation fails before that, cleanup calls mana_gd_destroy_cq() with id 0, NULLing gc->cq_table[0] and silently breaking whichever real CQ owns that slot. Initialize queue->id to INVALID_QUEUE_ID right after allocation, matching mana_gd_create_eq(). The existing (id >= max_num_cqs) guard then short-circuits cleanly.