kstrndup
parent_path = kstrndup(path, tail - path, GFP_KERNEL);
parse_buf = kstrndup(restriction, PAGE_SIZE, GFP_KERNEL);
new = kstrndup(s, len, GFP_KERNEL);
new = kstrndup(s, len, GFP_KERNEL);
orig = kstrndup(page, count, GFP_KERNEL);
object_prefix = kstrndup(ondisk->object_prefix,
build_label = kstrndup(&edl->data[1], build_lbl_len, GFP_KERNEL);
model_name = kstrndup(id->modname, 16, GFP_KERNEL);
manuf_name = kstrndup(id->mname, 16, GFP_KERNEL);
firmw_ver = kstrndup(id->firmver, 16, GFP_KERNEL);
derived_name = kstrndup(clk_name, endp - clk_name,
name = kstrndup(output, len, GFP_KERNEL);
input = kstrndup(buf, count, GFP_KERNEL);
input = kstrndup(buf, count, GFP_KERNEL);
info->key = kstrndup(key, key_len, GFP_KERNEL);
char *key __free(kfree) = kstrndup(skip_spaces(page), count,
char *name __free(kfree) = kstrndup(skip_spaces(page), count,
trimmed = kstrndup(skip_spaces(str), count, GFP_KERNEL);
char *key __free(kfree) = kstrndup(skip_spaces(page), count,
lr->label = kstrndup(ulr.consumer, sizeof(ulr.consumer) - 1,
le->label = kstrndup(eventreq.consumer_label,
lh->label = kstrndup(handlereq.consumer_label,
if (optstr && (s = kstrndup(optstr, arglen, GFP_KERNEL))) {
date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL);
date = kstrndup(hdr->date, sizeof(hdr->date), GFP_KERNEL);
source = optarg ? kstrndup(optarg, optlen, GFP_KERNEL) : NULL;
mode = kstrndup(buf, len, GFP_KERNEL);
s = kstrndup(p, end ? end - p : len, GFP_KERNEL);
cpy = kstrndup(addr + 3, len - 3, GFP_KERNEL);
dev->name = kstrndup(setup.name, UINPUT_MAX_NAME_SIZE, GFP_KERNEL);
dev->name = kstrndup(user_dev->name, UINPUT_MAX_NAME_SIZE,
fw_id_copy = kstrndup(&serio->firmware_id[5],
path = kstrndup(buffer, size, GFP_KERNEL);
dev->target_args_array[n] = kstrndup(field[3], DM_MAX_STR_SIZE,
str = kstrndup(create, DM_MAX_STR_SIZE, GFP_KERNEL);
block->data = kstrndup(data, maxsize - 1, GFP_KERNEL);
vendor = kstrndup(ftl->cis_buffer + SM_CIS_VENDOR_OFFSET,
buffer_clone = kstrndup(buffer, count, GFP_KERNEL);
str = kstrndup(vpd_data + start, kw_len, GFP_KERNEL);
str = kstrndup(vpd_data + start, kw_len, GFP_KERNEL);
hwname = kstrndup((char *)nla_data(info->attrs[HWSIM_ATTR_RADIO_NAME]),
hwname = kstrndup((char *)nla_data(info->attrs[HWSIM_ATTR_RADIO_NAME]),
name = kstrndup(buf, len, GFP_KERNEL);
input = kstrndup(buf, len, GFP_KERNEL);
new_nqn = kstrndup(page, len, GFP_KERNEL);
subsys->passthru_ctrl_path = kstrndup(page, len, GFP_KERNEL);
subsys->firmware_rev = kstrndup(UTS_RELEASE, NVMET_FR_MAX_SIZE, GFP_KERNEL);
subsys->subsysnqn = kstrndup(subsysnqn, NVMF_NQN_SIZE,
epf->name = kstrndup(name, len, GFP_KERNEL);
char *options __free(kfree) = kstrndup(buf, count, GFP_KERNEL);
param = kstrndup(buf, count, GFP_KERNEL);
kstrndup(optstart, optend - optstart,
name = kstrndup(region.name, MAX_REGION_NAME_LENGTH - 1, GFP_KERNEL);
p = kstrndup(fw_name, len, GFP_KERNEL);
newbuf = kstrndup(buf, AP_CONFIG_STRLEN, GFP_KERNEL);
inst->irq_name = kstrndup(irq_name, sizeof(irq_name), GFP_KERNEL);
inst->name = kstrndup(name, KNAV_NAME_SIZE - 1, GFP_KERNEL);
pool->name = kstrndup(name, KNAV_NAME_SIZE - 1, GFP_KERNEL);
light->name = kstrndup(conf.name, NAMES_MAX, GFP_KERNEL);
channel->color_name = kstrndup(conf.color_name, NAMES_MAX, GFP_KERNEL);
channel->mode_name = kstrndup(conf.mode_name, NAMES_MAX, GFP_KERNEL);
gbpsy->manufacturer = kstrndup(resp.manufacturer, PROP_MAX, GFP_KERNEL);
gbpsy->model_name = kstrndup(resp.model, PROP_MAX, GFP_KERNEL);
gbpsy->serial_number = kstrndup(resp.serial_number, PROP_MAX,
sw->vendor_name = kstrndup(entry->data,
sw->device_name = kstrndup(entry->data,
c = kstrndup(page, len, GFP_KERNEL); \
c = kstrndup(page, min(len, maxlen), GFP_KERNEL);
new_pnp = kstrndup(page, len, GFP_KERNEL);
tmp = kstrndup(page, len, GFP_KERNEL); \
str = kstrndup(buf, count, GFP_KERNEL);
sp = kstrndup(buf, sp_len, GFP_KERNEL);
last_name = kstrndup(rde->name, rde->name_len, GFP_KERNEL);
sym = kstrndup(iinfo->symlink, symlen, GFP_NOFS);
opts->name = kstrndup(name_start, len, GFP_KERNEL);
fsopt->mds_namespace = kstrndup(fs_name_start, len, GFP_KERNEL);
sbi->volume_name = kstrndup(dsb->volume_name,
ret = kstrndup(dentry->d_name.name, dentry->d_name.len,
dst = kstrndup(src, maxlen, GFP_KERNEL);
ctx->username = kstrndup(payload, len, GFP_KERNEL);
ctx->password = kstrndup(delim, len, GFP_KERNEL);
ses->dns_dom = kstrndup(ctx->domainname,
*share = kstrndup(target, len, GFP_KERNEL);
ctx->server_hostname = kstrndup(devname + 2, pos - devname - 2, GFP_KERNEL);
ctx->UNC = kstrndup(devname, pos - devname, GFP_KERNEL);
*_link_str = kstrndup(link_str, link_len, GFP_KERNEL);
de->name = kstrndup(name, namelen, GFP_ATOMIC);
share->path = kstrndup(ksmbd_share_config_path(resp), path_len,
extern char *kstrndup(const char *s, size_t len, gfp_t gfp);
value_type = kstrndup(value_type, node_field_name - value_type,
name = kstrndup(buf, len, GFP_KERNEL);
wl->name = kstrndup(name, len, GFP_KERNEL);
str = kstrndup(buf, len, GFP_KERNEL);
*pbuf = kstrndup(str, len - 1, GFP_KERNEL);
argv_str = kstrndup(str, KMALLOC_MAX_SIZE - 1, gfp);
parsed->suite_glob = kstrndup(filter_glob, period - filter_glob, GFP_KERNEL);
name = kstrndup(buf, count, GFP_KERNEL);
*dst = kstrndup(name, count, gfp);
name = kstrndup(buf, count, GFP_KERNEL);
name = kstrndup(buf, count, GFP_KERNEL);
name = kstrndup(buf, count, GFP_KERNEL);
name = kstrndup(buf, count, GFP_KERNEL);
*dst = kstrndup(name, count, gfp);
EXPORT_SYMBOL(kstrndup);
spec_orig = spec = kstrndup(args, MAX_VMPRESSURE_ARGS_LEN, GFP_KERNEL);
buf_copy = kstrndup(buf, count, GFP_KERNEL);
char *name = kstrndup(*p, len, GFP_NOFS);
name = kstrndup(buf, len, GFP_KERNEL);
dst_addr = kstrndup(buf, buf_len, GFP_KERNEL);
const char *name = kstrndup(hname, split - hname,
*ns_name = kstrndup(tmpns, ns_len, GFP_KERNEL);
alg = kstrndup(valstr, sep - valstr, GFP_KERNEL);
smack = kstrndup(string, i, GFP_NOFS);
char *smack = kstrndup(label, label_len, gfp);
char *s = kstrndup(src, len, GFP_KERNEL);
char *wname __free(kfree) = kstrndup(w->name, 15, GFP_KERNEL);