]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
Xilinx: ARM: cpufreq: Fix potential NULL ptr dereference
authorSoren Brinkmann <soren.brinkmann@xilinx.com>
Tue, 4 Sep 2012 12:57:01 +0000 (05:57 -0700)
committerJohn Linn <john.linn@xilinx.com>
Wed, 5 Sep 2012 21:46:48 +0000 (14:46 -0700)
commitcb5220b8c43765caa09341c8264a14088293ad53
treec9aacf6a73ee73136be9afd3cf6ff8f2132de762
parent9f0d4cec2dc6f0c84c4bb4a5b4a8d98a466c9208
Xilinx: ARM: cpufreq: Fix potential NULL ptr dereference

If no OPPs exist, creating the freq_table fails. Error
handling in this case worked for the first core to
execute the cpufreq init routine. But a following core
would have unconditionally called
cpufreq_frequency_table_cpuinfo() causing a NULL pointer
dereference.

A corresponding fix for OMAP had been applied to mainline:
1b8652142334a8c0729c5c4536a22cfc6fc49297

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
drivers/cpufreq/zynq-cpufreq.c