summaryrefslogtreecommitdiff
path: root/scripts/mod/empty.c
diff options
context:
space:
mode:
authorLuís Henriques <lhenriques@suse.de>2022-05-24 19:06:27 +0300
committerIlya Dryomov <idryomov@gmail.com>2022-08-03 01:54:12 +0300
commitfea013e020e6ecc7be75bea0d61697b7e916b44d (patch)
tree1ee7c0f695af06aca24d5f9ffb8f976971f2737e /scripts/mod/empty.c
parent637fa738b590ec0e3414931d1e07c4f195eb5215 (diff)
downloadlinux-fea013e020e6ecc7be75bea0d61697b7e916b44d.tar.xz
ceph: use correct index when encoding client supported features
Feature bits have to be encoded into the correct locations. This hasn't been an issue so far because the only hole in the feature bits was in bit 10 (CEPHFS_FEATURE_RECLAIM_CLIENT), which is located in the 2nd byte. When adding more bits that go beyond the this 2nd byte, the bug will show up. [xiubli: remove incorrect comment for CEPHFS_FEATURES_CLIENT_SUPPORTED] Fixes: 9ba1e224538a ("ceph: allocate the correct amount of extra bytes for the session features") Signed-off-by: Luís Henriques <lhenriques@suse.de> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Xiubo Li <xiubli@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'scripts/mod/empty.c')
0 files changed, 0 insertions, 0 deletions