Re: [PATCH] phy: core: check whether ops callback function is assigned

2016-12-27 Thread Jaehoon Chung
On 12/27/2016 05:31 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 22 December 2016 03:12 PM, Jaehoon Chung wrote: >> If some ops-> callback function are not assigend, then it should do the >> unexpect behavior. >> To prevent the potential NULL pointer dereference, check the each >> callb

Re: [PATCH] phy: core: check whether ops callback function is assigned

2016-12-27 Thread Kishon Vijay Abraham I
Hi, On Thursday 22 December 2016 03:12 PM, Jaehoon Chung wrote: > If some ops-> callback function are not assigend, then it should do the > unexpect behavior. > To prevent the potential NULL pointer dereference, check the each > callback functions before doing operation. The call backs checks are

[PATCH] phy: core: check whether ops callback function is assigned

2016-12-22 Thread Jaehoon Chung
If some ops-> callback function are not assigend, then it should do the unexpect behavior. To prevent the potential NULL pointer dereference, check the each callback functions before doing operation. Signed-off-by: Jaehoon Chung --- drivers/phy/phy-core.c | 8 1 file changed, 4 insertio