Re: [PATCH] input: mtk-pmic-keys: Fix probe when no DT node present

2018-07-03 Thread Lee Jones
On Fri, 22 Jun 2018, Dmitry Torokhov wrote: > On Fri, Jun 22, 2018 at 01:42:28PM +0200, Matthias Brugger wrote: > > The drivers gets probed from a mfd devices. So the driver runs > > probe although no DT node exists. This leads to a NULL pointer > > dereference in the probe function. Check if a no

Re: [PATCH] input: mtk-pmic-keys: Fix probe when no DT node present

2018-06-22 Thread Dmitry Torokhov
On Fri, Jun 22, 2018 at 01:42:28PM +0200, Matthias Brugger wrote: > The drivers gets probed from a mfd devices. So the driver runs > probe although no DT node exists. This leads to a NULL pointer > dereference in the probe function. Check if a node exists and > error out in case none is present. H

[PATCH] input: mtk-pmic-keys: Fix probe when no DT node present

2018-06-22 Thread Matthias Brugger
The drivers gets probed from a mfd devices. So the driver runs probe although no DT node exists. This leads to a NULL pointer dereference in the probe function. Check if a node exists and error out in case none is present. Fixes: 3e9f0b3e2b27 ("input: Add MediaTek PMIC keys support") Signed-off-by