Commit c7e873f8 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bios: fix oops on pre-nv50 chipsets

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 9f6d2ce3
......@@ -44,8 +44,10 @@ static void
pramin_fini(void *data)
{
struct priv *priv = data;
nv_wr32(priv->bios, 0x001700, priv->bar0);
kfree(priv);
if (priv) {
nv_wr32(priv->bios, 0x001700, priv->bar0);
kfree(priv);
}
}
static void *
......
Markdown is supported
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