d762928
--- nfs-ganesha-2.0.0/src/FSAL/FSAL_CEPH/handle.c.orig	2014-06-02 01:49:21.711983531 -0400
d762928
+++ nfs-ganesha-2.0.0/src/FSAL/FSAL_CEPH/handle.c	2014-06-02 01:50:57.119983531 -0400
d762928
@@ -374,12 +374,13 @@
d762928
 	/* The private 'full' directory handle */
d762928
 	struct handle *link = container_of(link_pub, struct handle, handle);
d762928
 	/* Pointer to the Ceph link content */
d762928
-	char *content = NULL;
d762928
+	char content[4096] = {0,};
d762928
 
d762928
 	/* Content points into a static buffer in the Ceph client's
d762928
 	   cache, so we don't have to free it. */
d762928
 
d762928
-	rc = ceph_ll_readlink(export->cmount, link->i, &content, 0, 0);
d762928
+	rc = ceph_ll_readlink(export->cmount, link->i,
d762928
+                              content, sizeof content, 0, 0);
d762928
 
d762928
 	if (rc < 0)
d762928
 		return ceph2fsal_error(rc);