X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Flockd%2Fsvcshare.c;h=068886de4dda19b176ab2340da64269c05d87da1;hb=2dd550b90b03d5f236a18ae491bf6e70798469a8;hp=6220dc2a3f2c246e31817902a674648321fd6873;hpb=6d03a68e6d5528630955452ec4b768dbde0dc00c;p=linux-2.6 diff --git a/fs/lockd/svcshare.c b/fs/lockd/svcshare.c index 6220dc2a3f..068886de4d 100644 --- a/fs/lockd/svcshare.c +++ b/fs/lockd/svcshare.c @@ -39,7 +39,7 @@ nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file, return nlm_lck_denied; } - share = (struct nlm_share *) kmalloc(sizeof(*share) + oh->len, + share = kmalloc(sizeof(*share) + oh->len, GFP_KERNEL); if (share == NULL) return nlm_lck_denied_nolocks;