[PATCH openEuler-5.10 20/28] net: hns3: add NULL pointer check for hns3_set/get_ringparam()