[PATCH 5.17 0819/1126] net: hns3: add NULL pointer check for hns3_set/get_ringparam()