RDMA/ucma: Check that device exists prior to accessing it
[pandora-kernel.git] / fs / hpfs / inode.c
index 3b2cec2..00fc943 100644 (file)
@@ -268,7 +268,7 @@ int hpfs_setattr(struct dentry *dentry, struct iattr *attr)
        if ((attr->ia_valid & ATTR_SIZE) && attr->ia_size > inode->i_size)
                goto out_unlock;
 
-       error = inode_change_ok(inode, attr);
+       error = setattr_prepare(dentry, attr);
        if (error)
                goto out_unlock;