diff options
author | Alex Elder <elder@inktank.com> | 2012-05-16 22:16:39 +0200 |
---|---|---|
committer | Alex Elder <elder@dreamhost.com> | 2012-05-17 15:18:13 +0200 |
commit | a255651d4cad89f1a606edd36135af892ada4f20 (patch) | |
tree | 6d2c694b336f948272349e5de24be70460a94826 /Kconfig | |
parent | ceph: messenger: reduce args to create_authorizer (diff) | |
download | linux-a255651d4cad89f1a606edd36135af892ada4f20.tar.xz linux-a255651d4cad89f1a606edd36135af892ada4f20.zip |
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 <elder@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions