Commit 179d71b9 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix memleak in longhaul.c found by smatch.

parent ec0f9b58
...@@ -456,8 +456,10 @@ static int __init longhaul_get_ranges (void) ...@@ -456,8 +456,10 @@ static int __init longhaul_get_ranges (void)
} }
longhaul_table[k].frequency = CPUFREQ_TABLE_END; longhaul_table[k].frequency = CPUFREQ_TABLE_END;
if (!k) if (!k) {
kfree (longhaul_table);
return -EINVAL; return -EINVAL;
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment