[PATCH openEuler-1.0-LTS v2] sched: smart_grid: fix potential NULL pointer dereference