]> git.baikalelectronics.ru Git - kernel.git/commit
staging: lustre: fid: perform sanity checks before commiting
authorNeilBrown <neilb@suse.com>
Tue, 20 Feb 2018 02:23:38 +0000 (13:23 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 14:06:36 +0000 (15:06 +0100)
commitbb2e43eb50abfbbf8f43cd979dbb5ca0fcab3372
tree2c5a0bba94d2c8d03c7f3609543002e933ff6084
parent9853c6d8d3bf0ac4268decc562a199fd518f6b4c
staging: lustre: fid: perform sanity checks before commiting

When fid fetches a new range from the server, it commits
to it (*output = *out) *before* performing sanity checks.
This looks backwards.
Don't commit to a value until it has been found to be sane.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/fid/fid_request.c