[PATCH v2] mtd: fsl-quadspi: possible NULL dereference

Brian Norris computersforpeace at gmail.com
Wed Nov 18 10:32:59 PST 2015


On Mon, Nov 16, 2015 at 10:45:30AM -0800, Brian Norris wrote:
> 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 at gmail.com>
> Cc: Han Xu <han.xu at freescale.com>
> ---
> v2:
>  * missed a 'const' warning
>  * s/reference/dereference in $subject

Pushed to l2-mtd.git



More information about the linux-mtd mailing list