diff options
author | Julia Lawall <julia@diku.dk> | 2010-08-11 03:01:18 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 17:59:00 +0200 |
commit | 85bc081f44d53e3ac268c59275cc3b9b5afae04a (patch) | |
tree | 5f0ff66195736ed6b383828b9e21370e8801a42c /drivers/media/video/cx25840 | |
parent | dc395x: decrease iteration for tag_number of max_command in start_scsi() (diff) | |
download | linux-85bc081f44d53e3ac268c59275cc3b9b5afae04a.tar.xz linux-85bc081f44d53e3ac268c59275cc3b9b5afae04a.zip |
drivers/scsi/aic94xx/aic94xx_init.c: correct the size argument to kmalloc
In each case, the destination of the allocation has type struct **, so the
elements of the array should have pointer type, not structure type.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@disable sizeof_type_expr@
type T;
T **x;
@@
x =
<+...sizeof(
- T
+ *x
)...+>
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Rolf Eike Beer <eike-kernel@sf-tec.de>
Cc: Joe Perches <joe@perches.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/media/video/cx25840')
0 files changed, 0 insertions, 0 deletions