From: Julia Lawall Date: Wed, 8 Jul 2009 05:04:55 +0000 (-0700) Subject: Input: use resource_size when allocating resources X-Git-Tag: v2.6.32-rc1~686^2^2~52 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72398e4b1a4cf55d3698a4f265b638093a470b04;p=pandora-kernel.git Input: use resource_size when allocating resources Use the function resource_size, which reduces the chance of introducing off-by-one errors in calculating the resource size. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // Signed-off-by: Julia Lawall Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed