Skip to content

Commit

Permalink
drm/nouveau/bios: fix oops on pre-nv50 chipsets
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Dec 21, 2014
1 parent 9f6d2ce commit c7e873f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/gpu/drm/nouveau/core/subdev/bios/shadowramin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit c7e873f

Please sign in to comment.