Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/char/agp/
Dcompat_ioctl.c94 struct agp_segment32 *usegment; in compat_agpioc_reserve_wrap() local
101 usegment = kmalloc_array(ureserve.seg_count, in compat_agpioc_reserve_wrap()
102 sizeof(*usegment), in compat_agpioc_reserve_wrap()
104 if (!usegment) in compat_agpioc_reserve_wrap()
111 kfree(usegment); in compat_agpioc_reserve_wrap()
115 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, in compat_agpioc_reserve_wrap()
116 sizeof(*usegment) * ureserve.seg_count)) { in compat_agpioc_reserve_wrap()
117 kfree(usegment); in compat_agpioc_reserve_wrap()
123 ksegment[seg].pg_start = usegment[seg].pg_start; in compat_agpioc_reserve_wrap()
124 ksegment[seg].pg_count = usegment[seg].pg_count; in compat_agpioc_reserve_wrap()
[all …]