summaryrefslogtreecommitdiffstats
path: root/crypto/lrw.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2009-07-07 22:04:55 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-07-07 22:48:14 -0700
commit72398e4b1a4cf55d3698a4f265b638093a470b04 (patch)
tree497fd88ccf5d3984b9585f52139e2e3b35bf8798 /crypto/lrw.c
parent666cbe342622c959ad95515918a1c1f8210c93f2 (diff)
downloadblackbird-op-linux-72398e4b1a4cf55d3698a4f265b638093a470b04.tar.gz
blackbird-op-linux-72398e4b1a4cf55d3698a4f265b638093a470b04.zip
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/) // <smpl> @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'crypto/lrw.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud