diff options
Diffstat (limited to 'kernel/fs/ceph/file.c')
-rw-r--r-- | kernel/fs/ceph/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/fs/ceph/file.c b/kernel/fs/ceph/file.c index 3c68e6aee..c8222bfe1 100644 --- a/kernel/fs/ceph/file.c +++ b/kernel/fs/ceph/file.c @@ -929,7 +929,8 @@ again: statret = __ceph_do_getattr(inode, page, CEPH_STAT_CAP_INLINE_DATA, !!page); if (statret < 0) { - __free_page(page); + if (page) + __free_page(page); if (statret == -ENODATA) { BUG_ON(retry_op != READ_INLINE); goto again; |