[PATCH 5.1 174/371] net: hns3: add some error checking in hclge_tm module