aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2021-10-27 09:35:29 +0000
committerGreg Kroah-Hartman <[email protected]>2021-10-30 08:54:47 +0000
commit536de747bc48262225889a533db6650731ab25d3 (patch)
tree3df2148b413d031ca41cbc158920d8165d4c6924 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parentcomedi: ni_usb6501: fix NULL-deref in command paths (diff)
downloadkernel-536de747bc48262225889a533db6650731ab25d3.tar.gz
kernel-536de747bc48262225889a533db6650731ab25d3.zip
comedi: dt9812: fix DMA buffers on stack
USB transfer buffers are typically mapped for DMA and must not be allocated on the stack or transfers will fail. Allocate proper transfer buffers in the various command helpers and return an error on short transfers instead of acting on random stack data. Note that this also fixes a stack info leak on systems where DMA is not used as 32 bytes are always sent to the device regardless of how short the command is. Fixes: 63274cd7d38a ("Staging: comedi: add usb dt9812 driver") Cc: [email protected] # 2.6.29 Reviewed-by: Ian Abbott <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions