libceph: fix CEPH_FEATURE_CEPHX_V2 check in calc_signature()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 9 Jan 2019 14:17:09 +0000 (15:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jan 2019 09:03:50 +0000 (10:03 +0100)
commit90b7f94812437be10cc3e81bfa10e6c9b6a2e5e2
tree020cd44a9b792f42322fcf4b07cf8d10f90455ab
parent5d1a7cebad586a3194b1e32240c280769d9494ed
libceph: fix CEPH_FEATURE_CEPHX_V2 check in calc_signature()

Upstream commit cc255c76c70f ("libceph: implement CEPHX_V2 calculation
mode") was adjusted incorrectly: CEPH_FEATURE_CEPHX_V2 if condition got
inverted, thus breaking 4.9.144 and later kernels for all setups that
use cephx.

Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/auth_x.c