]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix oops on unsupported operation
authorOlga Kornievskaia <aglo@umich.edu>
Thu, 23 Mar 2017 18:36:20 +0000 (14:36 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 13 Apr 2017 15:18:56 +0000 (11:18 -0400)
commit93270a07c6230ac61f2c352ad82d43ddfc314d1b
tree0e27a8342effb31b05f80235a355ba32e90ac0b6
parent78d71d63b760eb3342117f38ac54f6a83df83d2d
nfsd: fix oops on unsupported operation

I'm hitting the BUG in nfsd4_max_reply() at fs/nfsd/nfs4proc.c:2495 when
client sends an operation the server doesn't support.

in nfsd4_max_reply() it checks for NULL rsize_bop but a non-supported
operation wouldn't have that set.

Cc: Kinglong Mee <kinglongmee@gmail.com>
Fixes: ee88c3b8c87e "NFSD: Get response size before operation..."
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c