From: Alex Elder Date: Thu, 29 Nov 2012 14:37:03 +0000 (-0600) Subject: ceph: don't reference req after put X-Git-Tag: v3.8-rc1~21^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d5f24812bd182a2471cb69c1c2baf0648332e1f;p=pandora-kernel.git ceph: don't reference req after put In __unregister_request(), there is a call to list_del_init() referencing a request that was the subject of a call to ceph_osdc_put_request() on the previous line. This is not safe, because the request structure could have been freed by the time we reach the list_del_init(). Fix this by reversing the order of these lines. Signed-off-by: Alex Elder Reviewed-off-by: Sage Weil --- Reading git-diff-tree failed