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

From: Brian Norris
Date: Wed Nov 18 2015 - 13:33:10 EST


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@xxxxxxxxx>
> Cc: Han Xu <han.xu@xxxxxxxxxxxxx>
> ---
> v2:
> * missed a 'const' warning
> * s/reference/dereference in $subject

Pushed to l2-mtd.git
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/