android_kernel_xiaomi_sm7250/drivers/clk/ingenic
Paul Cercueil ae6baa8cec clk: ingenic/jz4770: Exit with error if CGU init failed
commit c067b46d731a764fc46ecc466c2967088c97089e upstream.

Exit jz4770_cgu_init() if the 'cgu' pointer we get is NULL, since the
pointer is passed as argument to functions later on.

Fixes: 7a01c19007 ("clk: Add Ingenic jz4770 CGU driver")
Cc: stable@vger.kernel.org
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lkml.kernel.org/r/20200213161952.37460-1-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 10:48:52 +02:00
..
cgu.c clk: ingenic: Fix round_rate misbehaving with non-integer dividers 2019-03-23 20:10:03 +01:00
cgu.h clk: ingenic: Fix doc of ingenic_cgu_div_info 2019-03-23 20:10:03 +01:00
jz4740-cgu.c clk: ingenic: jz4740: Fix gating of UDC clock 2020-01-27 14:50:19 +01:00
jz4770-cgu.c clk: ingenic/jz4770: Exit with error if CGU init failed 2020-04-17 10:48:52 +02:00
jz4780-cgu.c clk: ingenic: Use const pointer to clk_ops in struct 2018-01-18 22:04:36 +00:00
Makefile clk: Add Ingenic jz4770 CGU driver 2018-01-18 22:05:55 +00:00