]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: add error check in nfs_idmap_prepare_message()
authorChengguang Xu <cgxu519@gmx.com>
Thu, 28 Jun 2018 03:09:45 +0000 (11:09 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 30 Jul 2018 17:19:40 +0000 (13:19 -0400)
commitace42db293b3f517cd64307fb5ff1a8637d54ef8
treee8df1f3fda0e879d75622408501b0156224d25bf
parent1165bdaa84db6f3ddcc30df8b992692859259270
nfs: add error check in nfs_idmap_prepare_message()

Even though the caller of nfs_idmap_prepare_message() checks return
code in their side but it's better to add an error check for match_int()
so that we can avoid unnecessary operations when bad int arg is
detected.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4idmap.c