[DTV00857290][DTV][Coverity Scanned Code Defect]

[Description]
Fix coverity defects under nic/que_mgt.c.

Fix Dereference after null check.
 - Cid#361481 in line 4635.

Fix Dereference null return value.
 - Cid#361508 in line 815.

Fix Illegal address computation.
 - Cid#361516 in line 861.
Checkout value of 'ucQueIdx' in line 858.

Fix Out-of-bounds read
 - Cid#361515 in line 856.
Checkout value of 'ucQueIdx' in line 858.

Change-Id: I47011edf7c025e07c9326c1fe937f67d9a199874
Signed-off-by: Alice Ou <alice.ou@mediatek.com>
(cherry picked from commit 059630664d32d49d403b60fb6a73f1523bd28b1f)
CR-Id: DTV00857290
(cherry picked from commit 54397037c56ed899a3d4cd1b053a34aebf5e75e8)
(cherry picked from commit 741fb6ee629c53f72f855272f13fa2028e66e963)
1 file changed