[PATCH] ibmasm driver: fix race in command refcount logic
This patch fixes a race in the command reference counting logic by putting spinlocks around kobject_put() in the command_put function. - Also added debug messages. - Changed a memcpy to memcpy_fromio since we are reading from io space. Signed-off-by:Max Asbock <masbock@us.ibm.com> Signed-off-by:
Andrew Morton <akpm@osdl.org> Signed-off-by:
Linus Torvalds <torvalds@osdl.org>
Showing
- drivers/misc/ibmasm/command.c 24 additions, 6 deletionsdrivers/misc/ibmasm/command.c
- drivers/misc/ibmasm/dot_command.c 8 additions, 2 deletionsdrivers/misc/ibmasm/dot_command.c
- drivers/misc/ibmasm/heartbeat.c 11 additions, 2 deletionsdrivers/misc/ibmasm/heartbeat.c
- drivers/misc/ibmasm/ibmasm.h 6 additions, 1 deletiondrivers/misc/ibmasm/ibmasm.h
- drivers/misc/ibmasm/ibmasmfs.c 1 addition, 1 deletiondrivers/misc/ibmasm/ibmasmfs.c
- drivers/misc/ibmasm/r_heartbeat.c 1 addition, 1 deletiondrivers/misc/ibmasm/r_heartbeat.c
Loading
Please register or sign in to comment