[PATCH 5.2 102/413] net: hns3: fix for dereferencing before null checking