From: Dan Carpenter Date: Thu, 15 Aug 2013 05:52:48 +0000 (+0300) Subject: libceph: potential NULL dereference in ceph_osdc_handle_map() X-Git-Tag: v3.12-rc1~90^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b72e19b9225d4297a18715b0998093d843d170fa;p=pandora-kernel.git libceph: potential NULL dereference in ceph_osdc_handle_map() There are two places where we read "nr_maps" if both of them are set to zero then we would hit a NULL dereference here. Signed-off-by: Dan Carpenter Reviewed-by: Sage Weil --- Reading git-diff-tree failed