Re: [PATCH v2] iio: adc: mediatek: fix unset field

2020-10-18 Thread Fabien Parent
Hi Andy On Sun, Oct 18, 2020 at 8:33 PM Andy Shevchenko wrote: > > On Sun, Oct 18, 2020 at 9:31 PM Andy Shevchenko > wrote: > > > > On Sun, Oct 18, 2020 at 8:16 PM Fabien Parent wrote: > > > > > > dev_comp field is used in a couple of places but it is never set. This > > > results in kernel

Re: [PATCH v2] iio: adc: mediatek: fix unset field

2020-10-18 Thread Andy Shevchenko
On Sun, Oct 18, 2020 at 9:31 PM Andy Shevchenko wrote: > > On Sun, Oct 18, 2020 at 8:16 PM Fabien Parent wrote: > > > > dev_comp field is used in a couple of places but it is never set. This > > results in kernel oops when dereferencing a NULL pointer. Set the > > `dev_comp` field correctly in

Re: [PATCH v2] iio: adc: mediatek: fix unset field

2020-10-18 Thread Andy Shevchenko
On Sun, Oct 18, 2020 at 8:16 PM Fabien Parent wrote: > > dev_comp field is used in a couple of places but it is never set. This > results in kernel oops when dereferencing a NULL pointer. Set the > `dev_comp` field correctly in the probe function. > > Fixes: 6d97024dce23 ("iio: adc: mediatek:

[PATCH v2] iio: adc: mediatek: fix unset field

2020-10-18 Thread Fabien Parent
dev_comp field is used in a couple of places but it is never set. This results in kernel oops when dereferencing a NULL pointer. Set the `dev_comp` field correctly in the probe function. Fixes: 6d97024dce23 ("iio: adc: mediatek: mt6577-auxadc, add mt6765 support") Signed-off-by: Fabien Parent