From: Alex Elder Date: Wed, 16 May 2012 20:16:39 +0000 (-0500) Subject: ceph: ensure auth ops are defined before use X-Git-Tag: v3.5-rc1~36^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a255651d4cad89f1a606edd36135af892ada4f20;p=pandora-kernel.git ceph: ensure auth ops are defined before use In the create_authorizer method for both the mds and osd clients, the auth_client->ops pointer is blindly dereferenced. There is no obvious guarantee that this pointer has been assigned. And furthermore, even if the ops pointer is non-null there is definitely no guarantee that the create_authorizer or destroy_authorizer methods are defined. Add checks in both routines to make sure they are defined (non-null) before use. Add similar checks in a few other spots in these files while we're at it. Signed-off-by: Alex Elder Reviewed-by: Sage Weil --- Reading git-diff-tree failed