[PATCH OLK-6.6 19/19] net: hns3: add input parameters checking