drm/qxl: fix __user annotations
Drop them from u64 fields, tag local variables correctly instead. While being at it switch the code to use u64_to_user_ptr(). Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Daniel Vetter <daniel@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20170620113916.6967-2-kraxel@redhat.com
This commit is contained in:
@@ -80,8 +80,8 @@ struct drm_qxl_reloc {
|
||||
};
|
||||
|
||||
struct drm_qxl_command {
|
||||
__u64 __user command; /* void* */
|
||||
__u64 __user relocs; /* struct drm_qxl_reloc* */
|
||||
__u64 command; /* void* */
|
||||
__u64 relocs; /* struct drm_qxl_reloc* */
|
||||
__u32 type;
|
||||
__u32 command_size;
|
||||
__u32 relocs_num;
|
||||
@@ -91,7 +91,7 @@ struct drm_qxl_command {
|
||||
struct drm_qxl_execbuffer {
|
||||
__u32 flags; /* for future use */
|
||||
__u32 commands_num;
|
||||
__u64 __user commands; /* struct drm_qxl_command* */
|
||||
__u64 commands; /* struct drm_qxl_command* */
|
||||
};
|
||||
|
||||
struct drm_qxl_update_area {
|
||||
|
||||
Reference in New Issue
Block a user