]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: set -EINVAL in one place in crush_decode()
authorIlya Dryomov <idryomov@gmail.com>
Thu, 13 Jul 2017 13:57:26 +0000 (15:57 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 17 Jul 2017 12:54:58 +0000 (14:54 +0200)
commitda8df82c4b6428b329b4da1295722099da465ac4
treeec72f9f1cc4ec422a54d910667cf15c897ee984d
parentdd2c6be4c34fdc9796ff91f6cf64d4656c1b8a7c
libceph: set -EINVAL in one place in crush_decode()

No sooner than Dan had fixed this issue in commit 6acd7e6b8bd2
("libceph: NULL deref on crush_decode() error path"), I brought it
back.  Add a new label and set -EINVAL once, right before failing.

Fixes: 3cb6765f169a ("libceph: ceph_decode_skip_* helpers")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osdmap.c