]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nfsd: fix wrong check in write_v4_end_grace()
authorYihao Wu <wuyihao@linux.alibaba.com>
Wed, 6 Mar 2019 13:03:50 +0000 (21:03 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitbb94200db218fad56d756abfc521cf532ada297d
tree9fd429dcbb65282ef728d4094acfc25dfb1d9a78
parentca1466eede7cfd8043766dc764d27705b9cc2bf8
nfsd: fix wrong check in write_v4_end_grace()

BugLink: https://bugs.launchpad.net/bugs/1837952
commit dd838821f0a29781b185cd8fb8e48d5c177bd838 upstream.

Commit 62a063b8e7d1 "nfsd4: fix crash on writing v4_end_grace before
nfsd startup" is trying to fix a NULL dereference issue, but it
mistakenly checks if the nfsd server is started. So fix it.

Fixes: 62a063b8e7d1 "nfsd4: fix crash on writing v4_end_grace before nfsd startup"
Cc: stable@vger.kernel.org
Reviewed-by: Joseph Qi <joseph.qi@linux.alibaba.com>
Signed-off-by: Yihao Wu <wuyihao@linux.alibaba.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/nfsd/nfsctl.c