mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
fbdev: ssd1307fb: fix potential page leak in ssd1307fb_probe()
[ Upstream commit164312662a] The page allocated for vmem using __get_free_pages() is not freed on the error paths after it. Fix that by adding a corresponding __free_pages() call to the error path. Fixes:facd94bc45("fbdev: ssd1307fb: Allocate page aligned video memory.") Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
15a6847f28
commit
d4b20e53b6
1 changed files with 3 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue