aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfs4idmap.c')
-rw-r--r--fs/nfsd/nfs4idmap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4idmap.c b/fs/nfsd/nfs4idmap.c
index 4b6aa60dfceb..b1902ebaab41 100644
--- a/fs/nfsd/nfs4idmap.c
+++ b/fs/nfsd/nfs4idmap.c
@@ -34,7 +34,6 @@
34 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35 */ 35 */
36 36
37#include <linux/config.h>
38#include <linux/module.h> 37#include <linux/module.h>
39#include <linux/init.h> 38#include <linux/init.h>
40 39
@@ -574,10 +573,9 @@ idmap_lookup(struct svc_rqst *rqstp,
574 struct idmap_defer_req *mdr; 573 struct idmap_defer_req *mdr;
575 int ret; 574 int ret;
576 575
577 mdr = kmalloc(sizeof(*mdr), GFP_KERNEL); 576 mdr = kzalloc(sizeof(*mdr), GFP_KERNEL);
578 if (!mdr) 577 if (!mdr)
579 return -ENOMEM; 578 return -ENOMEM;
580 memset(mdr, 0, sizeof(*mdr));
581 atomic_set(&mdr->count, 1); 579 atomic_set(&mdr->count, 1);
582 init_waitqueue_head(&mdr->waitq); 580 init_waitqueue_head(&mdr->waitq);
583 mdr->req.defer = idmap_defer; 581 mdr->req.defer = idmap_defer;