Home
last modified time | relevance | path

Searched refs:buf_cp (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/platform/x86/dell/dell-wmi-sysman/
Dpassobj-attributes.c75 char *p, *buf_cp; in new_password_store() local
78 buf_cp = kstrdup(buf, GFP_KERNEL); in new_password_store()
79 if (!buf_cp) in new_password_store()
81 p = memchr(buf_cp, '\n', count); in new_password_store()
85 if (strlen(buf_cp) > MAX_BUFF) { in new_password_store()
90 ret = set_new_password(kobj->name, buf_cp); in new_password_store()
93 kfree(buf_cp); in new_password_store()
Ddell-wmi-sysman.h137 char *p, *buf_cp; \
139 buf_cp = kstrdup(buf, GFP_KERNEL); \
140 if (!buf_cp) \
142 p = memchr(buf_cp, '\n', count); \
148 ret = validate_##type##_input(i, buf_cp); \
150 ret = set_attribute(kobj->name, buf_cp); \
151 kfree(buf_cp); \
/linux-6.12.1/drivers/platform/x86/hp/hp-bioscfg/
Dpasswdobj-attributes.c87 char *buf_cp; in store_password_instance() local
90 buf_cp = kstrdup(buf, GFP_KERNEL); in store_password_instance()
91 if (!buf_cp) in store_password_instance()
94 ret = hp_enforce_single_line_input(buf_cp, count); in store_password_instance()
99 ret = validate_password_input(id, buf_cp); in store_password_instance()
104 strscpy(bioscfg_drv.password_data[id].current_password, buf_cp); in store_password_instance()
106 strscpy(bioscfg_drv.password_data[id].new_password, buf_cp); in store_password_instance()
109 kfree(buf_cp); in store_password_instance()