diff options
author | Sage Weil <sage@newdream.net> | 2011-03-29 12:11:06 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-03-29 12:11:06 -0700 |
commit | fbdb9190482fd83a3eb20cdeb0da454759f479d7 (patch) | |
tree | bf83dcd6ea13c9a1feedb2a8f79744de93f9fecd /net/ceph/ceph_common.c | |
parent | 234af26ff123dfb2aa48772124721b1354c8e0a5 (diff) | |
download | linux-next-fbdb9190482fd83a3eb20cdeb0da454759f479d7.tar.gz |
libceph: fix null dereference when unregistering linger requests
We should only clear r_osd if we are neither registered as a linger or a
regular request. We may unregister as a linger while still registered as
a regular request (e.g., in reset_osd). Incorrectly clearing r_osd there
leads to a null pointer dereference in __send_request.
Also simplify the parallel check in __unregister_request() where we just
removed r_osd_item and know it's empty.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph/ceph_common.c')
0 files changed, 0 insertions, 0 deletions