]> git.karo-electronics.de Git - linux-beck.git/commit
drm/amd/powerplay: avoid NULL pointer dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 21 Aug 2016 18:21:27 +0000 (20:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Aug 2016 17:48:05 +0000 (13:48 -0400)
commitd36f3e048e1e81906c776760d70e06bce366ef65
treeac764440d461fa11e6978f22015081f92767373b
parent887656f0b7da0fdbb22740907c53cbc4aefee0ef
drm/amd/powerplay: avoid NULL pointer dereference

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/amd_powerplay.c