[PATCH 5.2 194/413] net: hns3: add some error checking in hclge_tm module