diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index 15e1dfef56a5915a5979c3b74c513a714cc310c6..60f83a3bd77caf03281a0974e9a728e12a99fc87 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -30,7 +30,7 @@ struct posix_acl *btrfs_get_acl(struct inode *inode, int type) name = XATTR_NAME_POSIX_ACL_DEFAULT; break; default: - BUG(); + return ERR_PTR(-EINVAL); } size = btrfs_getxattr(inode, name, "", 0);