diff --git a/[refs] b/[refs] index ce9665196cda..cbea7413c0e2 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1872bcebbcd6ad7ddd99e92fb1e4f3d19e73919c +refs/heads/master: 0cfc11ed45e4c00750039e5a18c0fc0d681e19db diff --git a/trunk/fs/ext2/xip.c b/trunk/fs/ext2/xip.c index 0aa5ac159c09..ca7f00312388 100644 --- a/trunk/fs/ext2/xip.c +++ b/trunk/fs/ext2/xip.c @@ -36,7 +36,7 @@ __ext2_get_sector(struct inode *inode, sector_t offset, int create, *result = tmp.b_blocknr; /* did we get a sparse block (hole in the file)? */ - if (!(*result)) { + if (!tmp.b_blocknr && !rc) { BUG_ON(create); rc = -ENODATA; }