diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-09-05 18:23:29 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2018-09-11 15:16:38 +0200 |
commit | 2d58830c3feafc54dccc0b7bf761a466437d4a09 (patch) | |
tree | 39616718ae4d8a205c2a03efae3435c208d7abe2 /.gitignore | |
parent | 5d5d883496842da84d9418e91cb13454751da625 (diff) |
Fix uninitialized use of local variable pitch in radeon_setup_kernel_mem
Fixes server reset.
Pointed out by clang:
../../src/radeon_kms.c:2721:9: warning: variable 'pitch' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
if (!info->front_buffer) {
^~~~~~~~~~~~~~~~~~~
../../src/radeon_kms.c:2765:27: note: uninitialized use occurs here
pScrn->displayWidth = pitch / cpp;
^~~~~
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions