diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-03-07 17:21:21 +0300 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2022-03-21 13:35:16 +0100 |
commit | c38af9825eff8ff76b9d57dd62ebc7ff6050464c (patch) | |
tree | 4d9270b35cd093add4939089e6eb402449721fe4 /fs/ceph | |
parent | 271251f841a53ce20c4e49047278e06c205a8ebd (diff) | |
download | linux-c38af9825eff8ff76b9d57dd62ebc7ff6050464c.tar.gz linux-c38af9825eff8ff76b9d57dd62ebc7ff6050464c.tar.bz2 linux-c38af9825eff8ff76b9d57dd62ebc7ff6050464c.zip |
ceph: uninitialized variable in debug output
If read_mapping_folio() fails then "inline_version" is printed without
being initialized.
[ jlayton: use CEPH_INLINE_NONE instead of "-1" ]
Fixes: 083db6fd3e73 ("ceph: uninline the data on a file opened for writing")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/addr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 46e0881ae8b2..752c421c9922 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -1647,9 +1647,10 @@ int ceph_uninline_data(struct file *file) struct ceph_osd_request *req; struct ceph_cap_flush *prealloc_cf; struct folio *folio = NULL; + u64 inline_version = CEPH_INLINE_NONE; struct page *pages[1]; - u64 len, inline_version; int err = 0; + u64 len; prealloc_cf = ceph_alloc_cap_flush(); if (!prealloc_cf) |