kernel/drivers/gpu/drm/rockchip/rk628/rk628_combtxphy.c
.. .. @@ -366,6 +366,10 @@ 366 366 ref_clk = clk_get_rate(combtxphy->ref_clk) / 1000; /* khz */ 367 367 if (combtxphy->division_mode) 368 368 ref_clk /= 2; 369 +370 + if (!ref_clk)371 + return -EINVAL;372 +369 373 /* 370 374 * the reference clock at PFD(FPFD = ref_clk / ref_div) about 371 375 * 25MHz is recommende, FPFD must range from 16MHz to 35MHz,