]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: Fix missing null check in atombios_i2c.c
authorErnst Sjöstrand <ernstp@gmail.com>
Sun, 19 Nov 2017 17:52:44 +0000 (18:52 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:59 +0000 (12:47 -0500)
commit7d0331007ab4bea446cf3d173410c3179b12e2ff
tree0e918b3a0fb8ccfa9303dc828480b9c52e7d4777
parente9c227b253712db75b0623fe1596fec8c8857807
drm/amd/amdgpu: Fix missing null check in atombios_i2c.c

Reported by smatch:
amdgpu_atombios_i2c_process_i2c_ch() error: we previously assumed 'buf' could be null

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atombios_i2c.c