Patch "video: fbdev: pxafb: potential NULL dereference on error" has been added to the 4.8-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
video: fbdev: pxafb: potential NULL dereference on error
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
video-fbdev-pxafb-potential-null-dereference-on-error.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
e0299908d606a99e7ffb467bc3c11dfe54133af3Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Fri, 15 Jul 2016 14:07:32 +0300
Subject: video: fbdev: pxafb: potential NULL dereference on error
From: Dan Carpenter <[email protected]>
commit e0299908d606a99e7ffb467bc3c11dfe54133af3 upstream.
If we "goto out;" then it calls display_timings_release(timings); Since "timings" is NULL, that's going to oops. Just return directly.
--- drivers/video/fbdev/pxafb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/pxafb.c +1 -1
@@ -2125,7 +2125,7 @@ static int of_get_pxafb_display(struct d timings =of_get_display_timings (disp);if (!timings) - goto out; +return -EINVAL ; ret = -ENOMEM ; info->modes = kmalloc_array(timings->num_timings,
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/ubi-fastmap-fix-add_vol-return-value-test-in-ubi_attach_fastmap.patch queue-4.8/video-fbdev-pxafb-potential-null-dereference-on-error.patch