clk dereference in arch/sh/kernel/cpufreq.c

From: Julia Lawall
Date: Thu Jan 03 2013 - 04:40:12 EST

There has been a discussion recently about how the result of get_clk
should be an opaque handle, not a value that can be dereferenced:

There is such a dereference in arch/sh/kernel/cpufreq.c, in the function

freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL;

It was not obvious to me, however, what API function should be used
instead, so I am just reporting the (potential) problem.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at