drm/nouveau/secboot/gm20b: initialize pointer in gm20b_secboot_new()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 8 Jan 2020 05:46:01 +0000 (08:46 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:48 +0000 (08:36 +0100)
commit63e00e2c80e5e4afb4aa669d0361075e5925211b
tree4cb82e18faf58b596d532f2912167eaff34cf4c1
parent760baae7ab35e960486bc6d66a2c64d94995d1c5
drm/nouveau/secboot/gm20b: initialize pointer in gm20b_secboot_new()

[ Upstream commit 3613a9bea95a1470dd42e4ed1cc7d86ebe0a2dc0 ]

We accidentally set "psb" which is a no-op instead of "*psb" so it
generates a static checker warning.  We should probably set it before
the first error return so that it's always initialized.

Fixes: 923f1bd27bf1 ("drm/nouveau/secboot/gm20b: add secure boot support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/gm20b.c