Re: [PATCH] pinctrl: mediatek: Free eint data on failure

2020-08-20 Thread Enric Balletbo i Serra
Hi Sean, On 20/8/20 2:00, Sean Wang wrote: > On Wed, Aug 19, 2020 at 9:19 AM Enric Balletbo i Serra > wrote: >> >> The pinctrl driver can work without the EINT resource, but, if it is >> expected to have this resource but the mtk_build_eint() function fails >> after allocating their data (because

Re: [PATCH] pinctrl: mediatek: Free eint data on failure

2020-08-19 Thread Sean Wang
On Wed, Aug 19, 2020 at 9:19 AM Enric Balletbo i Serra wrote: > > The pinctrl driver can work without the EINT resource, but, if it is > expected to have this resource but the mtk_build_eint() function fails > after allocating their data (because can't get the resource or can't map > the irq), the

[PATCH] pinctrl: mediatek: Free eint data on failure

2020-08-19 Thread Enric Balletbo i Serra
The pinctrl driver can work without the EINT resource, but, if it is expected to have this resource but the mtk_build_eint() function fails after allocating their data (because can't get the resource or can't map the irq), the data is not freed and you end with a NULL pointer dereference. Fix this