1. 30 7月, 2016 7 次提交
  2. 16 7月, 2016 1 次提交
  3. 08 7月, 2016 4 次提交
  4. 21 6月, 2016 1 次提交
    • N
      drm/amdgpu: initialize amdgpu_cgs_acpi_eval_object result value · 29b9c528
      Nicolas Iooss 提交于
      amdgpu_cgs_acpi_eval_object() returned the value of variable "result"
      without initializing it first.
      
      This bug has been found by compiling the kernel with clang.  The
      compiler complained:
      
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: error: variable
          'result' is used uninitialized whenever 'for' loop exits because its
          condition is false [-Werror,-Wsometimes-uninitialized]
                  for (i = 0; i < count; i++) {
                              ^~~~~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:1011:9: note: uninitialized
          use occurs here
                  return result;
                         ^~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:972:14: note: remove the
          condition if it is always true
                  for (i = 0; i < count; i++) {
                              ^~~~~~~~~
          drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c:864:12: note: initialize the
          variable 'result' to silence this warning
                  int result;
                            ^
                             = 0
      
      Fixes: 3f1d35a0 ("drm/amdgpu: implement new cgs interface for acpi
      function")
      Signed-off-by: NNicolas Iooss <nicolas.iooss_linux@m4x.org>
      Cc: stable@vger.kernel.org
      Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
      29b9c528
  5. 09 6月, 2016 1 次提交
  6. 12 5月, 2016 1 次提交
  7. 05 5月, 2016 6 次提交
  8. 01 4月, 2016 2 次提交
  9. 08 2月, 2016 1 次提交
  10. 11 1月, 2016 1 次提交
  11. 05 1月, 2016 1 次提交
  12. 22 12月, 2015 5 次提交
  13. 01 10月, 2015 1 次提交
  14. 24 9月, 2015 1 次提交
  15. 18 8月, 2015 7 次提交