[PATCH openEuler-5.10 116/146] tipc: check for null after calling kmemdup