]> git.baikalelectronics.ru Git - kernel.git/commit
crush: fix crash from invalid 'take' argument
authorIlya Dryomov <idryomov@gmail.com>
Fri, 12 Jun 2015 08:20:03 +0000 (11:20 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:31 +0000 (11:49 +0300)
commitfd9c768e6fc4aab4d6dfc01ae690159c0b6c1017
tree46f53222d34baeded01d146b1f223d33146c4e2a
parent0a9646a2340024b9d3e9d9f50177ba8bbde4d996
crush: fix crash from invalid 'take' argument

Verify that the 'take' argument is a valid device or bucket.
Otherwise ignore it (do not add the value to the working vector).

Reflects ceph.git commit 9324d0a1af61e1c234cc48e2175b4e6320fff8f4.

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