diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-07-30 21:26:05 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-05 16:28:37 -0700 |
commit | caacbac7bf646a29049bec3d9f5fcc20c846b3b2 (patch) | |
tree | 98b345469159cc613dc9b9e61d57ee1da6307f0a /Kbuild | |
parent | 6a5335b46b463c469ca03ddb706c0562e881d2ed (diff) | |
download | linux-3.10-caacbac7bf646a29049bec3d9f5fcc20c846b3b2.tar.gz linux-3.10-caacbac7bf646a29049bec3d9f5fcc20c846b3b2.tar.bz2 linux-3.10-caacbac7bf646a29049bec3d9f5fcc20c846b3b2.zip |
NFSD: Decrease nfsd_users in nfsd_startup_generic fail
commit d9499a95716db0d4bc9b67e88fd162133e7d6b08 upstream.
A memory allocation failure could cause nfsd_startup_generic to fail, in
which case nfsd_users wouldn't be incorrectly left elevated.
After nfsd restarts nfsd_startup_generic will then succeed without doing
anything--the first consequence is likely nfs4_start_net finding a bad
laundry_wq and crashing.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Fixes: 4539f14981ce "nfsd: replace boolean nfsd_up flag by users counter"
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions