Justus Winter, le Fri 19 Jul 2013 17:25:04 +0200, a écrit :
> kfree_s expects a pointer and a size argument. Currently the
> sizeof(cache) is used as size argument, this is certainly not what was
> intented.
Applied using sizeof(*cache), which is more obviously correct. Thanks!
Samuel
kfree_s expects a pointer and a size argument. Currently the
sizeof(cache) is used as size argument, this is certainly not what was
intented.
For reference, this code was present in Linux up to version 2.3.14 and
was replaced in 2.3.15.
Found using coccinelle and
https://raw.github.com/coccinelle