ceph: Fix NULL ptr crash in strlen()
authorDavid Zafman <david.zafman@inktank.com>
Thu, 25 Oct 2012 17:23:46 +0000 (10:23 -0700)
committerAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 21:35:07 +0000 (16:35 -0500)
commitb000056a5a8d3f5a4a9fb80184a7ec14f86a43d4
tree90129038f11ab2c0e35e670d7682ff8bac2aebea
parent7246240c7c186542f73af4fadc744d66440f616f
ceph: Fix NULL ptr crash in strlen()

set_request_path_attr() checks for NULL ptr before calling strlen()

This fixes http://tracker.newdream.net/issues/3404

Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/mds_client.c