From: Sage Weil Date: Tue, 29 Mar 2011 19:11:06 +0000 (-0700) Subject: libceph: fix null dereference when unregistering linger requests X-Git-Tag: v2.6.39-rc2~36^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbdb9190482fd83a3eb20cdeb0da454759f479d7;p=pandora-kernel.git 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 --- Reading git-diff-tree failed