Re: [PATCH] Memory - Fix possible NULL derefrence.

From: Alexandre Belloni
Date: Mon Jan 30 2017 - 02:59:52 EST

On 30/01/2017 at 10:30:05 +0530, Shailendra Verma wrote:
> of_device_get_match_data could return NULL, and so can cause
> a NULL pointer dereference later.

No, it will never return NULL because it will always match.

At some point, I would really like people to stop blindly sending
patches generated by coccinelle.

Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering