Re: [PATCH v2 1/1] serial: imx: fix a possible NULL dereference

2015-11-29 Thread Uwe Kleine-König
On Tue, Nov 24, 2015 at 03:36:57PM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > Even if the probability of this case is very low, fixing it made > static analyzers happy. > Solving this with of_device_get_match_data made also

Re: [PATCH v2 1/1] serial: imx: fix a possible NULL dereference

2015-11-29 Thread Uwe Kleine-König
On Tue, Nov 24, 2015 at 03:36:57PM +0100, LABBE Corentin wrote: > of_match_device could return NULL, and so cause a NULL pointer > dereference later. > Even if the probability of this case is very low, fixing it made > static analyzers happy. > Solving this with of_device_get_match_data made also

[PATCH v2 1/1] serial: imx: fix a possible NULL dereference

2015-11-24 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Even if the probability of this case is very low, fixing it made static analyzers happy. Solving this with of_device_get_match_data made also code simplier. Signed-off-by: LABBE Corentin ---

[PATCH v2 1/1] serial: imx: fix a possible NULL dereference

2015-11-24 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. Even if the probability of this case is very low, fixing it made static analyzers happy. Solving this with of_device_get_match_data made also code simplier. Signed-off-by: LABBE Corentin