diff options
author | Simon Horman <horms@verge.net.au> | 2008-09-17 10:10:41 +1000 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2008-09-17 10:10:41 +1000 |
commit | 9e691ed68d94ab3047e028736641445b4cf74d67 (patch) | |
tree | 165104bf7462da9e61263441458795da32b6c820 /net/tipc/port.h | |
parent | e8ae43ec6d8fb28ceeb3eb2b9aa2de823666ba2b (diff) |
ipvs: only unlock in ip_vs_edit_service() if already locked
Jumping to out unlocks __ip_vs_svc_lock, but that lock is not taken until
after code that may jump to out.
This problem was detected by sparse.
make C=1
CHECK net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_ctl.c:1332:2: warning: context imbalance in 'ip_vs_edit_service' - unexpected unlock
Acked-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Julius Volz <juliusv@google.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'net/tipc/port.h')
0 files changed, 0 insertions, 0 deletions