nfs/blocklayout: Check max uuids and devices before decoding
authorKinglong Mee <kinglongmee@gmail.com>
Thu, 14 Jul 2016 04:02:01 +0000 (12:02 +0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 15 Jul 2016 19:51:11 +0000 (15:51 -0400)
commitc77efc1e7884c818ba67ec36b08e220202d9428c
treea622db460307cdffe9f5aa26b12a649248d9aaa2
parentecc2b88c4a48cbabb3ed7617f55e92c123fb634b
nfs/blocklayout: Check max uuids and devices before decoding

Avoid nfs return uuids/devices larger than maximum.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/blocklayout/dev.c