Files
linux-stable-mirror/drivers/video/fbdev/nvidia
Abdun NihaalandGreg Kroah-Hartman 508704de34 fbdev: nvidia: fix potential memory leak in nvidiafb_probe()
commit 85f5e38c16 upstream.

In nvidiafb_probe(), the memory allocated for modelist in
nvidia_set_fbinfo() is not freed in the subsequent error paths.
Fix that by calling fb_destroy_modelist().

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-24 15:54:59 +02:00
..