radeon: Do not directly dereference pointers to BIOS area.
authorDavid Miller <davem@davemloft.net>
Thu, 19 Mar 2015 03:18:40 +0000 (23:18 -0400)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:07:44 +0000 (13:07 +0000)
commit0f10addaa877eb3ba2262d84ac3586431eddd783
treeed6dc16dfd537e22ded29595a1da6973b2e83f35
parent6efbe862083af9218180e5bca17e2309ec0f68bc
radeon: Do not directly dereference pointers to BIOS area.

commit f2c9e560b406f2f6b14b345c7da33467dee9cdf2 upstream.

Use readb() and memcpy_fromio() accessors instead.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_bios.c