drm/nouveau/secboot: plug memory leak in ls_ucode_img_load_gr() error path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 8 May 2017 12:30:43 +0000 (14:30 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 16 May 2017 23:09:41 +0000 (09:09 +1000)
commit563ad2b640955a0da21aedce1aaa332c7d016dde
treec7bfbfe9d6a5b59a415752f611f4e5def19228ea
parent9a2eba337cacefc95b97c2726e3efdd435b3460e
drm/nouveau/secboot: plug memory leak in ls_ucode_img_load_gr() error path

The last goto looks spurious because it releases less resources than the
previous one.
Also free 'img->sig' if 'ls_ucode_img_build()' fails.

Fixes: 9d896f3e41a6 ("drm/nouveau/secboot: abstract LS firmware loading functions")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/secboot/ls_ucode_gr.c