summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/arm/bcm4708.txt
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2015-03-29 04:48:48 +0300
committerMichael Turquette <mturquette@linaro.org>2015-04-13 07:09:49 +0300
commit03bc10ab5b0f9b8f81bffbe6e40c944f9d3dbcc5 (patch)
treec4d41d3a87567ebbe374db36b156621a7e6f6d55 /Documentation/devicetree/bindings/arm/bcm4708.txt
parent4591243102faa8de92da320edea47219901461e9 (diff)
downloadlinux-03bc10ab5b0f9b8f81bffbe6e40c944f9d3dbcc5.tar.xz
clk: check ->determine/round_rate() return value in clk_calc_new_rates
->determine_rate() and ->round_rate() can return the closest rate to the requested one or an error code. clk_calc_new_rates is assuming these functions can't return a negative value, which leads to a undefined behavior when the clk implementation returns such an error code. Fix this by returning NULL in case ->determine_rate() or ->round_rate() returned an error code. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
Diffstat (limited to 'Documentation/devicetree/bindings/arm/bcm4708.txt')
0 files changed, 0 insertions, 0 deletions