Patch "mtd: maps: sa1100-flash: potential NULL dereference" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mtd: maps: sa1100-flash: potential NULL dereference
to the 4.4-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:
mtd-maps-sa1100-flash-potential-null-dereference.patch
and it can be found in the queue-4.4 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
dc01a28d80a42cef08c94dfc595565aaebe46d15Mon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Fri, 15 Jul 2016 14:06:30 +0300
Subject: mtd: maps: sa1100-flash: potential NULL dereference
From: Dan Carpenter <[email protected]>
commit dc01a28d80a42cef08c94dfc595565aaebe46d15 upstream.
We check for NULL but then dereference "info->mtd" on the next line.
--- drivers/mtd/maps/sa1100-flash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/mtd/maps/sa1100-flash.c +3 -1
@@ -230,8 +230,10 @@ static struct sa_info *sa1100_setup_mtd( info->mtd =mtd_concat_create (cdev, info->num_subdev, plat->name); -if (info->mtd ==NULL ) +if (info->mtd ==NULL ) { ret = -ENXIO ; + goto err; + } } info->mtd->dev.parent = &pdev->dev;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/mtd-pmcmsp-flash-allocating-too-much-in-init_msp_flash.patch queue-4.4/mtd-maps-sa1100-flash-potential-null-dereference.patch