Thread (40 messages) 40 messages, 6 authors, 2014-03-22

Re: [PATCH v3 5/5] powernv:cpufreq: Implement the driver->get() method

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2014-03-21 12:34:09
Also in: linux-pm

On 21 March 2014 17:31, David Laight [off-list ref] wrote:
quoted
*(int *)ret_freq = freq;
Because it is very likely to be wrong.
In general casts of pointers to integer types are dangerous.
Where are we converting pointers to integers? We are doing a
cast from 'void * ' to 'int *' and then using indirection operator
to set its value.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help