Tag: e026255f7d0e56006a147b190ae23be95cb0a9bd

mtd: physmap_of: Correct the size argument to kzalloc

Author: Julia Lawall <julia@diku.dk> mtd_list has type struct mtd_info **, not struct mtd_info *, 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/) // @disable sizeof_type_expr@ type T; T **x; @@ x = // Signed-off-by: Julia Lawall Signed-off-by: David Woodhouse …

Continue reading