Searched refs:new_str (Results 1 – 1 of 1) sorted by relevance
48 char *new_str; in strndup() local60 new_str = kmalloc(len + 1, GFP_ATOMIC); in strndup()61 if (new_str == NULL) { in strndup()67 memcpy(new_str, str, len); in strndup()68 new_str[len] = '\0'; in strndup()70 return new_str; in strndup()