From: Yan, Zheng Date: Thu, 18 Sep 2014 08:11:12 +0000 (+0800) Subject: ceph: fix llistxattr on symlink X-Git-Tag: v4.9.8~5518^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0abb43dcacb52145aa265f82c914375d59dfe2da;p=platform%2Fkernel%2Flinux-rpi3.git ceph: fix llistxattr on symlink only regular file and directory have vxattrs. Signed-off-by: Yan, Zheng --- diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index a87510f..19da502 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -284,8 +284,7 @@ static size_t ceph_vxattrs_name_size(struct ceph_vxattr *vxattrs) return ceph_dir_vxattrs_name_size; if (vxattrs == ceph_file_vxattrs) return ceph_file_vxattrs_name_size; - BUG(); - + BUG_ON(vxattrs); return 0; }