ceph: fix null pointer dereference in discard_cap_releases()
authorYan, Zheng <zheng.z.yan@intel.com>
Mon, 24 Mar 2014 01:56:43 +0000 (09:56 +0800)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:07:17 +0000 (21:07 -0700)
commit00bd8edb861eb41d274938cfc0338999d9c593a3
treef924d27c0651107432a5fb6505ead522c65cc8fe
parentd90deda69cb82411ba7d990e97218e0f8b2d07bb
ceph: fix null pointer dereference in discard_cap_releases()

send_mds_reconnect() may call discard_cap_releases() after all
release messages have been dropped by cleanup_cap_releases()

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/mds_client.c