[CPUFREQ] fix show_trans_table
Fix show_trans_table when it overflows PAGE_SIZE. * Not all snprintf calls were protected against being passed a negative length. * When show_trans_table overflows, len might be > PAGE_SIZE. In that case, returns PAGE_SIZE. Signed-off-by: NCesar Eduardo Barros <cesarb@cesarb.net> Signed-off-by: NDave Jones <davej@codemonkey.org.uk>
Showing
想要评论请 注册 或 登录