Home
last modified time | relevance | path

Searched refs:kernbuf (Results 1 – 2 of 2) sorted by relevance

/linux-3.4.99/drivers/char/
Dtile-srom.c178 void *kernbuf; in srom_read() local
181 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_read()
182 if (!kernbuf) in srom_read()
187 kfree(kernbuf); in srom_read()
195 hv_retval = _srom_read(srom->hv_devhdl, kernbuf, in srom_read()
203 if (copy_to_user(buf, kernbuf, hv_retval) != 0) { in srom_read()
215 kfree(kernbuf); in srom_read()
233 void *kernbuf; in srom_write() local
236 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_write()
237 if (!kernbuf) in srom_write()
[all …]
/linux-3.4.99/drivers/platform/x86/
Dthinkpad_acpi.c856 char *kernbuf; in dispatch_proc_write() local
864 kernbuf = kmalloc(count + 2, GFP_KERNEL); in dispatch_proc_write()
865 if (!kernbuf) in dispatch_proc_write()
868 if (copy_from_user(kernbuf, userbuf, count)) { in dispatch_proc_write()
869 kfree(kernbuf); in dispatch_proc_write()
873 kernbuf[count] = 0; in dispatch_proc_write()
874 strcat(kernbuf, ","); in dispatch_proc_write()
875 ret = ibm->write(kernbuf); in dispatch_proc_write()
879 kfree(kernbuf); in dispatch_proc_write()