OSDN Git Service

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)
commit8f529795bace5d6263b134f4ff3adccfc0a0cce6
tree46f53222d34baeded01d146b1f223d33146c4e2a
parent687265e5a885d6308f5d73e738efe3c2674fa218
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