Skip to content
Commit 563ad2b6 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Ben Skeggs
Browse files

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: 9d896f3e

 ("drm/nouveau/secboot: abstract LS firmware loading functions")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 9a2eba33
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment