]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix off-by-one bug in ceph_encode_filepath()
authorAlex Elder <elder@inktank.com>
Tue, 3 Jul 2012 21:01:18 +0000 (16:01 -0500)
committerSage Weil <sage@inktank.com>
Mon, 30 Jul 2012 16:29:55 +0000 (09:29 -0700)
commit36e206cb25bff54d019bd64f4709e73f87bc24a6
treebd3e97181584049386a85f338623b76cf5d83952
parent0012d1a3e2dd7e5e56bf8bbc80233dbac9a03f2d
libceph: fix off-by-one bug in ceph_encode_filepath()

There is a BUG_ON() call that doesn't account for the single byte
structure version at the start of an encoded filepath in
ceph_encode_filepath().  Fix that.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
include/linux/ceph/decode.h