Lines Matching refs:elf_buf
453 char * elf_buf; in read_kcore() local
458 elf_buf = kzalloc(elf_buflen, GFP_ATOMIC); in read_kcore()
459 if (!elf_buf) { in read_kcore()
463 elf_kcore_store_hdr(elf_buf, nphdr, elf_buflen); in read_kcore()
465 if (copy_to_user(buffer, elf_buf + *fpos, tsz)) { in read_kcore()
466 kfree(elf_buf); in read_kcore()
469 kfree(elf_buf); in read_kcore()
503 char * elf_buf; in read_kcore() local
505 elf_buf = kzalloc(tsz, GFP_KERNEL); in read_kcore()
506 if (!elf_buf) in read_kcore()
508 vread(elf_buf, (char *)start, tsz); in read_kcore()
510 if (copy_to_user(buffer, elf_buf, tsz)) { in read_kcore()
511 kfree(elf_buf); in read_kcore()
514 kfree(elf_buf); in read_kcore()