summaryrefslogtreecommitdiffstats
path: root/drivers/base/dma-contiguous.c
diff options
context:
space:
mode:
authorYong Zhao2017-09-21 00:10:21 +0200
committerOded Gabbay2017-09-21 00:10:21 +0200
commitcb1d9967461cdf3b6aac6317c8d954a14f842571 (patch)
tree50bfb10a76331b899b285ba803f7c03c8090545c /drivers/base/dma-contiguous.c
parentdrm/amdkfd: Fix incorrect destroy_mqd parameter (diff)
downloadkernel-qcow2-linux-cb1d9967461cdf3b6aac6317c8d954a14f842571.tar.gz
kernel-qcow2-linux-cb1d9967461cdf3b6aac6317c8d954a14f842571.tar.xz
kernel-qcow2-linux-cb1d9967461cdf3b6aac6317c8d954a14f842571.zip
drm/amdkfd: Fix kernel-queue wrapping bugs
Avoid intermediate negative numbers when doing calculations with a mix of signed and unsigned variables where implicit conversions can lead to unexpected results. When kernel queue buffer wraps around to 0, we need to check that rptr won't be overwritten by the new packet. Signed-off-by: Yong Zhao <yong.zhao@amd.com> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/base/dma-contiguous.c')
0 files changed, 0 insertions, 0 deletions