nfsd: safer handling of corrupted c_type
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 3 Jun 2020 15:12:32 +0000 (11:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:49:03 +0000 (17:49 +0200)
commit87331261b7040510689bcfd00bae85245d0c6fbe
tree402244fdd04ce978cf6a51c445c0a4d953d0d6ec
parent534fd0588f98103aaaf0fac1fa139e242e669abb
nfsd: safer handling of corrupted c_type

[ Upstream commit c25bf185e57213b54ea0d632ac04907310993433 ]

This can only happen if there's a bug somewhere, so let's make it a WARN
not a printk.  Also, I think it's safest to ignore the corruption rather
than trying to fix it by removing a cache entry.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfscache.c