diff options
Diffstat (limited to 'fs/reiserfs/ioctl.c')
-rw-r--r-- | fs/reiserfs/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/ioctl.c b/fs/reiserfs/ioctl.c index 72054ce3a..c8761c2ed 100644 --- a/fs/reiserfs/ioctl.c +++ b/fs/reiserfs/ioctl.c @@ -77,8 +77,8 @@ int reiserfs_unpack (struct inode * inode, struct file * filp) */ index = inode->i_size >> PAGE_CACHE_SHIFT ; page = grab_cache_page(inode->i_mapping, index) ; - retval = PTR_ERR(page) ; - if (IS_ERR(page)) { + retval = -ENOMEM; + if (!page) { goto out ; } retval = reiserfs_prepare_write(NULL, page, write_from, blocksize) ; |