]> 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)
commitff2bdb06b602dafcb1fd51f2973d3158d4eecfa6
tree0e918b3a0fb8ccfa9303dc828480b9c52e7d4777
parent6c2d08c8840b29b1630b1a6ab7ece676000cbc2f
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