summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorLucas Costa <2000.costalucas@gmail.com>2026-09-22 11:28:51 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-10-01 07:22:14 +0200
commitb7c885194b81a0376d1fdb457eac40d21d6fb65f (patch)
treef65949ed82f345f91117298e428c3eee108aba19 /tools/lib/python/kdoc/python_version.py
parent8444548bd905f22093729065408284a6b46f7eee (diff)
staging: sm750fb: free cmap on framebuffer release
The cmap is allocated by lynxfb_set_fbinfo() but never freed, so it is leaked when the framebuffer is torn down. This happens on every unbind, and on the register_framebuffer() error path in sm750fb_framebuffer_alloc(). Add a lynxfb_unset_fbinfo() cleanup counterpart to lynxfb_set_fbinfo() which deallocates the cmap, and call it on teardown. In the alloc error path it is only called once lynxfb_set_fbinfo() has succeeded, so the cmap is only freed when it was actually allocated. Fixes: 81dee67e215b ("staging: sm750fb: add sm750 to staging") Suggested-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Lucas Costa <2000.costalucas@gmail.com> Link: https://patch.msgid.link/20260922142851.46724-1-2000.costalucas@gmail.com Reviewed-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions