Home
last modified time | relevance | path

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

/drivers/char/agp/
Dcompat_ioctl.c94 struct agp_segment32 *usegment; in compat_agpioc_reserve_wrap() local
101 usegment = kmalloc(sizeof(*usegment) * ureserve.seg_count, GFP_KERNEL); in compat_agpioc_reserve_wrap()
102 if (!usegment) in compat_agpioc_reserve_wrap()
107 kfree(usegment); in compat_agpioc_reserve_wrap()
111 if (copy_from_user(usegment, (void __user *) ureserve.seg_list, in compat_agpioc_reserve_wrap()
112 sizeof(*usegment) * ureserve.seg_count)) { in compat_agpioc_reserve_wrap()
113 kfree(usegment); in compat_agpioc_reserve_wrap()
119 ksegment[seg].pg_start = usegment[seg].pg_start; in compat_agpioc_reserve_wrap()
120 ksegment[seg].pg_count = usegment[seg].pg_count; in compat_agpioc_reserve_wrap()
121 ksegment[seg].prot = usegment[seg].prot; in compat_agpioc_reserve_wrap()
[all …]