]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:18 +0000 (06:43 -0700)
commitddceee68ce4db2f63b0488e226600c27a536ba8b
tree6239b7d2cf2ebd369e92d8241b361e156b422ab6
parentd72be6289f4a56356afe090c5757e129ad5693f5
drm/nouveau/bar/nv50: ensure BAR is mapped

[ Upstream commit f10b83de1fd49216a4c657816f48001437e4bdd5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nvkm/subdev/bar/nv50.c