]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fsl-quadspi: possible NULL dereference
authorBrian Norris <computersforpeace@gmail.com>
Mon, 16 Nov 2015 18:45:30 +0000 (10:45 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 18 Nov 2015 18:31:23 +0000 (10:31 -0800)
commitbbb4458e5531b4c32c908af4cb8c03e364e7fcdf
tree6ead085b0b422b7adfe2e01c7894e7b61aeafff5
parent63c8e35183bf1ed774d4e8a71df4578ddd350a29
mtd: fsl-quadspi: possible NULL dereference

It is theoretically possible to probe this driver without a matching
device tree, so let's guard against this.

Also, use the of_device_get_match_data() helper to make this a bit
simpler.

Coverity complained about this one.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Han xu <han.xu@freescale.com>
drivers/mtd/spi-nor/fsl-quadspi.c