Lines Matching refs:ksegments
231 struct kexec_segment *ksegments; in SYSCALL_DEFINE4() local
243 ksegments = memdup_array_user(segments, nr_segments, sizeof(ksegments[0])); in SYSCALL_DEFINE4()
244 if (IS_ERR(ksegments)) in SYSCALL_DEFINE4()
245 return PTR_ERR(ksegments); in SYSCALL_DEFINE4()
247 result = do_kexec_load(entry, nr_segments, ksegments, flags); in SYSCALL_DEFINE4()
248 kfree(ksegments); in SYSCALL_DEFINE4()
260 struct kexec_segment *ksegments; in COMPAT_SYSCALL_DEFINE4() local
273 ksegments = kmalloc_array(nr_segments, sizeof(ksegments[0]), in COMPAT_SYSCALL_DEFINE4()
275 if (!ksegments) in COMPAT_SYSCALL_DEFINE4()
283 ksegments[i].buf = compat_ptr(in.buf); in COMPAT_SYSCALL_DEFINE4()
284 ksegments[i].bufsz = in.bufsz; in COMPAT_SYSCALL_DEFINE4()
285 ksegments[i].mem = in.mem; in COMPAT_SYSCALL_DEFINE4()
286 ksegments[i].memsz = in.memsz; in COMPAT_SYSCALL_DEFINE4()
289 result = do_kexec_load(entry, nr_segments, ksegments, flags); in COMPAT_SYSCALL_DEFINE4()
292 kfree(ksegments); in COMPAT_SYSCALL_DEFINE4()