]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bar/nv50: ensure BAR is mapped
authorJon Derrick <jonathan.derrick@intel.com>
Sat, 16 Mar 2019 00:05:16 +0000 (18:05 -0600)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 1 May 2019 01:08:39 +0000 (11:08 +1000)
commit75fa3387b8d061d2f5102fe3c0780f3b7a1e6dc6
tree2f3db3c580ab3e0d69a107316bd24fb43901c8ed
parent2beda86f6673be74d27e60721d1a0abd67ff650f
drm/nouveau/bar/nv50: ensure BAR is mapped

If the BAR is zero size, it indicates it was never successfully mapped.
Ensure that the BAR is valid during initialization before attempting to
use it.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c