linux/drivers/gpu/drm/vc4
Dan Carpenter 585cb132a4 drm/vc4: Return -EFAULT on copy_from_user() failure
The copy_from_user() function returns the number of bytes not copied but
we want to return a negative error code.

Fixes: 463873d570 ('drm/vc4: Add an API for creating GPU shaders in GEM BOs.')
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
2016-03-13 17:09:12 -07:00
..
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
Makefile drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_bo.c drm/vc4: Return -EFAULT on copy_from_user() failure 2016-03-13 17:09:12 -07:00
vc4_crtc.c Merge tag 'drm-vc4-fixes-2016-03-03' of github.com:anholt/linux into drm-next 2016-03-14 09:48:04 +10:00
vc4_debugfs.c drm/vc4: Bind and initialize the V3D engine. 2015-12-07 20:05:10 -08:00
vc4_drv.c drm/vc4: Nuke preclose hook 2016-02-08 09:55:53 +01:00
vc4_drv.h drm/vc4: improve throughput by pipelining binning and rendering jobs 2016-03-13 17:05:05 -07:00
vc4_gem.c drm/vc4: improve throughput by pipelining binning and rendering jobs 2016-03-13 17:05:05 -07:00
vc4_hdmi.c drm/vc4: Respect GPIO_ACTIVE_LOW on HDMI HPD if set in the devicetree. 2016-03-13 17:06:57 -07:00
vc4_hvs.c drm/vc4: Add support for scaling of display planes. 2016-02-16 11:24:08 -08:00
vc4_irq.c drm/vc4: improve throughput by pipelining binning and rendering jobs 2016-03-13 17:05:05 -07:00
vc4_kms.c drm/vc4: Add a proper short-circut path for legacy cursor updates. 2016-02-16 11:24:08 -08:00
vc4_packet.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_plane.c drm/vc4: Add support for YUV planes. 2016-02-16 11:24:08 -08:00
vc4_qpu_defines.h drm/vc4: Add an API for creating GPU shaders in GEM BOs. 2015-12-07 20:05:09 -08:00
vc4_regs.h Merge tag 'drm-vc4-fixes-2016-03-03' of github.com:anholt/linux into drm-next 2016-03-14 09:48:04 +10:00
vc4_render_cl.c drm/vc4: Return an ERR_PTR from BO creation instead of NULL. 2016-02-16 12:20:58 -08:00
vc4_trace_points.c drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_trace.h drm/vc4: Add support for drawing 3D frames. 2015-12-07 20:05:10 -08:00
vc4_v3d.c drm/vc4: Use runtime PM to power cycle the device when the GPU hangs. 2016-02-16 12:21:01 -08:00
vc4_validate_shaders.c drm/vc4: Add an API for creating GPU shaders in GEM BOs. 2015-12-07 20:05:09 -08:00
vc4_validate.c drm/vc4: Return an ERR_PTR from BO creation instead of NULL. 2016-02-16 12:20:58 -08:00