Re: [PATCH] media: renesas-ceu: fix a potential NULL pointer dereference

2019-03-09 Thread Jacopo Mondi
Hi Kangjie, thanks for the patch. On Sat, Mar 09, 2019 at 01:14:24AM -0600, Kangjie Lu wrote: > In case of_match_device cannot find a match, the check returns > -EINVAL to avoid a potential NULL pointer dereference > > Signed-off-by: Kangjie Lu > --- > drivers/media/platform/renesas-ceu.c |

[PATCH] media: renesas-ceu: fix a potential NULL pointer dereference

2019-03-08 Thread Kangjie Lu
In case of_match_device cannot find a match, the check returns -EINVAL to avoid a potential NULL pointer dereference Signed-off-by: Kangjie Lu --- drivers/media/platform/renesas-ceu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/renesas-ceu.c