]> 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)
commit5251564ca86ee92dbe6831acac7185e0e47818ac
tree0e918b3a0fb8ccfa9303dc828480b9c52e7d4777
parent290e5404068bc521ca2cce4e618b47bc610d9196
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