1
linux/drivers/input/serio
Julia Lawall 72398e4b1a 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>
2009-07-07 22:48:14 -07:00
..
ambakmi.c [ARM] 5519/1: amba probe: pass "struct amba_id *" instead of void * 2009-05-20 23:26:51 +01:00
at32psif.c Input: use resource_size when allocating resources 2009-07-07 22:48:14 -07:00
ct82c710.c
gscps2.c
hil_mlc.c
hp_sdc_mlc.c
hp_sdc.c drivers/input/serio/hp_sdc.c: fix crash when removing hp_sdc module 2009-04-21 13:41:49 -07:00
i8042-io.h
i8042-ip22io.h
i8042-jazzio.h
i8042-ppcio.h
i8042-snirm.h
i8042-sparcio.h
i8042-x86ia64io.h Input: i8042 - add a DMI table for the i8042.reset option 2009-04-11 17:09:12 -07:00
i8042.c Input: serio - do not use deprecated dev.power.power_state 2009-05-09 16:10:18 -07:00
i8042.h
Kconfig
libps2.c Input: libps2 - better handle bad scheduler decisions 2009-05-28 10:34:02 -07:00
maceps2.c
Makefile
parkbd.c
pcips2.c
q40kbd.c
rpckbd.c [ARM] acorn,ebsa110,footbridge,integrator,sa1100: Convert asm/io.h to linux/io.h 2009-03-25 10:21:35 +00:00
sa1111ps2.c Input: sa1111ps2 - use disable_irq_nosync() in irq handlers 2009-04-17 20:41:54 -07:00
serio_raw.c Rationalize fasync return values 2009-03-16 08:34:35 -06:00
serio.c Input: serio - do not use deprecated dev.power.power_state 2009-05-09 16:10:18 -07:00
serport.c
xilinx_ps2.c