ceph: fix null pointer deref of r_osd in debug output
authorSage Weil <sage@newdream.net>
Tue, 16 Mar 2010 05:20:39 +0000 (22:20 -0700)
committerSage Weil <sage@newdream.net>
Tue, 23 Mar 2010 14:46:51 +0000 (07:46 -0700)
commit12eadc190038e68b5884a4aa313b6ab89ba60f5e
treeba53a7209528981aec774f99132723b913a9e6ae
parent0a990e7093566ceb07e38951e1a01686923d4f09
ceph: fix null pointer deref of r_osd in debug output

This causes an oops when debug output is enabled and we kick
an osd request with no current r_osd (sometime after an osd
failure).  Check the pointer before dereferencing.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/osd_client.c