]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFSv4.1/flexfiles: Fix a protocol error in layoutreturn
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 28 Aug 2015 00:37:39 +0000 (20:37 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:33:29 +0000 (19:33 +0200)
commitf232178c124f70fddaeb81dfd82ec25c0fba58cc
treec02721ad3effccee0c98b5aa7029610b90430410
parent6290313c5855b9062832d02301bd4eacb69da7bd
NFSv4.1/flexfiles: Fix a protocol error in layoutreturn

commit d13549074cf066d6d5bb29903d044beffea342d3 upstream.

According to the flexfiles protocol, the layoutreturn should specify an
array of errors in the following format:

struct ff_ioerr4 {
offset4        ffie_offset;
length4        ffie_length;
stateid4       ffie_stateid;
device_error4  ffie_errors<>;
};

This patch fixes up the code to ensure that our ffie_errors is indeed
encoded as an array (albeit with only a single entry).

Reported-by: Tom Haynes <thomas.haynes@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/flexfilelayout/flexfilelayoutdev.c