Skip to content

Commit

Permalink
pm2fb: free cmap memory on module remove
Browse files Browse the repository at this point in the history
Release cmap memory allocated in the probe function.

Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Aug 20, 2008
1 parent 1d96469 commit 27aa069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/pm2fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,7 @@ static void __devexit pm2fb_remove(struct pci_dev *pdev)
release_mem_region(fix->mmio_start, fix->mmio_len);

pci_set_drvdata(pdev, NULL);
fb_dealloc_cmap(&info->cmap);
kfree(info->pixmap.addr);
kfree(info);
}
Expand Down

0 comments on commit 27aa069

Please sign in to comment.