Files
linux/drivers
Daniel Vetter 697cc9c8a2 drm: Simplify GETRESOURCES ioctl
Looping twice when we can do it once is silly. Also use a consistent
style. Note that there's a good race with the connector list walking,
since that is no longer protected by mode_config.mutex. But that's for
a later patch to fix.

v2: Actually try to not blow up, somehow I lost the hunk that checks
we don't copy too much. Noticed by Chris.

v3:
- squash all drm_mode_getresources cleanups into one
- use consistent style for walking objects (Chris)

v4:
- Use u64_to_user_ptr (Chris)
- Don't forget to copy the last connector (Chris)

v5: Chris was right ...

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161211192019.29603-1-daniel.vetter@ffwll.ch
2016-12-12 10:24:07 +01:00
..
2016-11-16 20:46:32 +01:00
2016-12-12 10:24:07 +01:00
2016-09-27 12:33:47 +02:00
2016-11-16 12:39:57 -07:00
2016-09-20 20:57:12 +10:00
2016-11-29 16:43:24 +01:00
2016-11-01 09:04:04 -06:00