diff options
author | 2009-12-13 12:43:15 +0100 | |
---|---|---|
committer | 2009-12-14 11:37:57 +0000 | |
commit | bc2580061e42c323d7777029f01318f395edac0d (patch) | |
tree | 2e266d1159559d02b5d8d7e4d3c9539aac051d28 /kernel/resource.c | |
parent | ASoC: Fix build of OMAP sound drivers (diff) | |
download | wireguard-linux-bc2580061e42c323d7777029f01318f395edac0d.tar.xz wireguard-linux-bc2580061e42c323d7777029f01318f395edac0d.zip |
ASoC: Correct code taking the size of a pointer
sizeof(codec->reg_cache) is just the size of the pointer. Elsewhere in the
file, codec->reg_cache is used with sizeof(wm8900_reg_defaults), so the
code is changed to do the same here.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@@
expression *x;
expression f;
type T;
@@
*f(...,(T)x,...)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions