drm/amd/powerplay: avoid NULL dereference, cz_hwmgr.c
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 21 Aug 2016 18:27:02 +0000 (20:27 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Aug 2016 17:48:05 +0000 (13:48 -0400)
commitbb1800caf773eb8d819e0964c7efd96efe435fa1
treee0a06cfe7381110bdff226c368da047d0590cc22
parentd36f3e048e1e81906c776760d70e06bce366ef65
drm/amd/powerplay: avoid NULL dereference, cz_hwmgr.c

if (a == NULL || a->b == NULL)
leads to a NULL pointer dereference if a == NULL.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c