Re: 3.7+ kernels and Radeon HD 4250 backlight

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
drivers/gpu/drm/radeon/radeon_kns.c: static int radeon_info_ioctl(...)
...
value_ptr = (uint32_t *)((unsigned long)info->value);
// value_ptr = (uint32_t __user *)(info->value); // looks like more
correct for x86_64
...
if (copy_to_user(value_ptr, (char*)value, value_size)) {...

Why value_ptr is assumed to be lower 4 Gb?
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux