[PATCH AUTOSEL for 4.15 57/78] clk: check ops pointer on clock register

2018-03-07 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 29fd2a34ef8d863e48183bd473ba57c8d7839e25 ] Nothing really prevents a provider from (trying to) register a clock without providing the clock ops structure. We do check the individual fields before using them, but not the structure

[PATCH AUTOSEL for 4.15 57/78] clk: check ops pointer on clock register

2018-03-07 Thread Sasha Levin
From: Jerome Brunet [ Upstream commit 29fd2a34ef8d863e48183bd473ba57c8d7839e25 ] Nothing really prevents a provider from (trying to) register a clock without providing the clock ops structure. We do check the individual fields before using them, but not the structure pointer itself. This may