summaryrefslogtreecommitdiff
path: root/fs/ceph/xattr.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-05-09 13:11:25 +0300
committerIlya Dryomov <idryomov@gmail.com>2019-07-08 15:01:40 +0300
commit13c41737b912a6f6354369c9b20a02c3868ab304 (patch)
treeb4d837dfb4fa2454668c7f596df26b8cfed5200f /fs/ceph/xattr.c
parent97a385e558292ba0851906783642239865670a5f (diff)
downloadlinux-13c41737b912a6f6354369c9b20a02c3868ab304.tar.xz
ceph: silence a checker warning in mdsc_show()
The problem is that if ceph_mdsc_build_path() fails then we set "path" to NULL and the "pathlen" variable is uninitialized. Then we call ceph_mdsc_free_path(path, pathlen) to clean up. Since "path" is NULL, the function is a no-op but Smatch and UBSan still complain that "pathlen" is uninitialized. This patch doesn't change run time, it just silence the warnings. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/xattr.c')
0 files changed, 0 insertions, 0 deletions