aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-11-30 13:51:03 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-12-12 19:12:16 -0800
commit92b633a8a482c4bc1ff3b7cffdcace7836861554 (patch)
tree7b64321201ddde6d9cd049851039156d3221a39b /Documentation
parentmtd: spi-nor: allow NULL as chip name and try to auto detect it (diff)
downloadlinux-dev-92b633a8a482c4bc1ff3b7cffdcace7836861554.tar.xz
linux-dev-92b633a8a482c4bc1ff3b7cffdcace7836861554.zip
mtd: physmap_of: fix potential NULL dereference
On device remove, when testing the cmtd field of an of_flash struct to decide whether it is a concatenated device or not, we get a false positive on cmtd == NULL, and dereference it subsequently. This may occur if of_flash_remove() is called from the cleanup path of of_flash_probe(). Instead, test for NULL first, and only then perform the test for a concatenated device. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions