[PATCH 5.10 123/154] tipc: check for null after calling kmemdup