From fc51768ba24077c8148067036e1555a8a978bb99 Mon Sep 17 00:00:00 2001 From: Himangi Saraogi Date: Sun, 6 Jul 2014 21:43:42 +0530 Subject: [PATCH] thunderbolt: Correct the size argument to devm_kzalloc nhi->rx_rings does not have type as struct tb_ring *, as it is a double pointer so the elements of the array should have pointer type, not structure type. The Coccinelle semantic patch that makes this change is as follows: // @disable sizeof_type_expr@ type T; T **x; @@ x = <+...sizeof( - T + *x )...+> // Signed-off-by: Himangi Saraogi Acked-by: Julia Lawall Cc: Andreas Noever Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed