Message ID | 1449179922-502-2-git-send-email-matthew.r.wilcox@intel.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/fs/dax.c b/fs/dax.c index 6662de3..727af65 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -207,7 +207,8 @@ static ssize_t dax_io(struct inode *inode, struct iov_iter *iter, } pos += len; - dax.addr += len; + if (!IS_ERR(dax.addr)) + dax.addr += len; } if (need_wmb)