Skip to content

Commit 7e8a295

Browse files
committed
ceph: fix sizeof(struct tYpO *) typo
struct ceph_xattr -> struct ceph_inode_xattr Reported-by: Toralf Förster <toralf.foerster@gmx.de> Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Reviewed-by: Alex Elder <elder@linaro.org>
1 parent 1a295bd commit 7e8a295

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ceph/xattr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ static int __build_xattrs(struct inode *inode)
592592
xattr_version = ci->i_xattrs.version;
593593
spin_unlock(&ci->i_ceph_lock);
594594

595-
xattrs = kcalloc(numattr, sizeof(struct ceph_xattr *),
595+
xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *),
596596
GFP_NOFS);
597597
err = -ENOMEM;
598598
if (!xattrs)

0 commit comments

Comments
 (0)