aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-11-06 09:56:31 +0000
committerWim Van Sebroeck <[email protected]>2015-11-23 07:59:30 +0000
commit62ed853c7de7a77bdf01421fb6836269c9b1aa1f (patch)
tree3064fea9ba4badc85af7233ddbe7dfdd216969bc /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentwatchdog: pnx4008: make global wdt_clk static (diff)
downloadkernel-62ed853c7de7a77bdf01421fb6836269c9b1aa1f.tar.gz
kernel-62ed853c7de7a77bdf01421fb6836269c9b1aa1f.zip
watchdog: w83977f_wdt: underflow in wdt_set_timeout()
"t" is controlled by the user. If "t" is a very large integer then it could lead to a negative "tmrval". We cap the upper bound of "tmrval" but, in the current code, we allow negatives. This is a bug and it causes a static checker warning. Let's make "tmrval" unsigned to avoid this problem. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions