Re: drm/imx: Checking a kmemdup() call in imx_pd_bind()

2019-10-07 Thread Markus Elfring
> I agree with you, kmemdup may fail so a null check seems necessary there. Would this place (and similar ones) be pointed out for further considerations also by the source code analysis tool which your software research group seems to be developing? https://github.com/umnsec/cheq/ Regards, Marku

Re: drm/imx: Checking a kmemdup() call in imx_pd_bind()

2019-10-06 Thread Navid Emamdoost
Hi Markus, I agree with you, kmemdup may fail so a null check seems necessary there. On Sun, Oct 6, 2019 at 4:33 AM Markus Elfring wrote: > > I have taken another look also at the implementation of the function > “imx_pd_bind”. > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi

Re: drm/imx: Checking a kmemdup() call in imx_pd_bind()

2019-10-06 Thread Markus Elfring
I have taken another look also at the implementation of the function “imx_pd_bind”. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/imx/parallel-display.c?id=43b815c6a8e7dbccb5b8bd9c4b099c24bc22d135#n197 https://elixir.bootlin.com/linux/v5.4-rc1/source/drive