clk dereference in drivers/net/ethernet/ti/cpts.c
Subsystems (2)
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:
https://lkml.org/lkml/2012/12/20/105
There is such a dereference in drivers/net/ethernet/ti/cpts.c, in the function cpts_clk_init:
cpts->freq = cpts->refclk->recalc(cpts->refclk);
It was not obvious to me, however, what API function should be used instead, so I am just reporting the (potential) problem.
thanks,
julia
Quoted 5 lines · Julia Lawall
There has been a discussion recently about how the result of
get_clkshould be an opaque handle, not a value that can be dereferenced:
Quoted 7 lines
There is such a dereference in
drivers/net/ethernet/ti/cpts.c, in the functioncpts_clk_init:
cpts->freq=cpts->refclk->recalc(cpts->refclk);It was not obvious to me, however, what API function should be used instead, so I am just reporting the (potential) problem.
This issue has been fixed in v3.8-rc2.
Thanks,
Richard