[PATCH 5.15 193/279] tipc: check for null after calling kmemdup