]> git.karo-electronics.de Git - karo-tx-linux.git/commit
markers: fix unregister
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 14 Nov 2008 22:47:35 +0000 (17:47 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 08:01:26 +0000 (09:01 +0100)
commit2bdba316c989da028a59becf7516c6350ce3c173
tree18ee77474c243ebea424b0bdb3e38c444f6f0e0b
parent954e100d2275cb2f150f2b18d5cddcdf67b956ac
markers: fix unregister

Impact: fix marker registers/unregister race

get_marker() can return a NULL entry because the mutex is released in
the middle of those functions. Make sure we check to see if it has been
concurrently removed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/marker.c