common/cnxk: check SQ node before setting BP config
authorSatha Rao <skoteshwar@marvell.com>
Fri, 25 Feb 2022 04:59:26 +0000 (23:59 -0500)
committerJerin Jacob <jerinj@marvell.com>
Fri, 25 Feb 2022 07:47:53 +0000 (08:47 +0100)
commitd120c08958d8a05e9c5791c6e49c99d79eb664a0
tree177c7dffa0e8f674f4fc4993736726653241d0ce
parent50e2c7fdc116414ff97325d9238edcdf474021da
common/cnxk: check SQ node before setting BP config

Validate sq_node and parent before accessing their fields.
SQ was created without any associated TM node, this is valid negative
case, so return success while stopping TM without SQ node.

Signed-off-by: Satha Rao <skoteshwar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_nix_tm.c
drivers/common/cnxk/roc_nix_tm_ops.c