]> git.baikalelectronics.ru Git - kernel.git/commit
crush: ensure take bucket value is valid
authorIlya Dryomov <idryomov@gmail.com>
Sun, 31 Jan 2016 13:36:05 +0000 (14:36 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 Feb 2016 17:25:50 +0000 (18:25 +0100)
commitda1cb26fd45ecfffaaec0a2929b15e2715eb1ddd
tree0ccfe9a3f823e53bd1880f83fcf1be815b8e7c8e
parent55870c9a56fa9fabdbb9d631ab826cede293747c
crush: ensure take bucket value is valid

Ensure that the take argument is a valid bucket ID before indexing the
buckets array.

Reflects ceph.git commit 93ec538e8a667699876b72459b8ad78966d89c61.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
net/ceph/crush/mapper.c