]> git.karo-electronics.de Git - linux-beck.git/commit
staging/lustre/llite: don't panic when fid is insane
authorSergey Cheremencev <sergey.cheremencev@seagate.com>
Mon, 20 Jun 2016 20:55:44 +0000 (16:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Jun 2016 21:28:39 +0000 (14:28 -0700)
commitc681528a2ba7c8ceb273c608ff26c38b5ee668e8
tree88f1a45d943d941b2dd979d98af4b56d83bb5ef7
parentaea7ccd985a83d7ce55ebaa815108124c97af258
staging/lustre/llite: don't panic when fid is insane

LASSERT should never be done on data that is
received to over the network. Return EINVAL
when server returns invalid fid despite of
it_status == 0.

Signed-off-by: Sergey Cheremencev <sergey.cheremencev@seagate.com>
Seagate-bug-id: MRP-3073
Reviewed-on: http://review.whamcloud.com/17985
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7422
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c