[PATCH v2] tipc: check for null after calling kmemdup