diff options
| author | Stefano Stabellini <[email protected]> | 2017-11-15 21:20:21 +0000 |
|---|---|---|
| committer | Boris Ostrovsky <[email protected]> | 2017-11-15 21:38:15 +0000 |
| commit | 646d944c2ef5a3b298c4e150494c71b9272d8b47 (patch) | |
| tree | 7dc5ca8c8681c80b438db0babfebe26e2f1ecbc0 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | xen/pvcalls: Add MODULE_LICENSE() (diff) | |
| download | kernel-646d944c2ef5a3b298c4e150494c71b9272d8b47.tar.gz kernel-646d944c2ef5a3b298c4e150494c71b9272d8b47.zip | |
xen/pvcalls: fix potential endless loop in pvcalls-front.c
mutex_trylock() returns 1 if you take the lock and 0 if not. Assume you
take in_mutex on the first try, but you can't take out_mutex. Next times
you call mutex_trylock() in_mutex is going to fail. It's an endless
loop.
Solve the problem by waiting until the global refcount is 1 instead (the
refcount is 1 when the only active pvcalls frontend function is
pvcalls_front_release).
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Stefano Stabellini <[email protected]>
Signed-off-by: Boris Ostrovsky <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
