Commit c4dd7702 authored by Neil Brown's avatar Neil Brown Committed by Linus Torvalds

[PATCH] PATCH 5/7: knfsd cleanups - mkdev

Use MKDEV for making device number from components

This patch is thanks to GOTO Masanori <gotom@debian.or.jp>
parent dda8a81e
......@@ -339,7 +339,7 @@ nfsd3_proc_mknod(struct svc_rqst *rqstp, struct nfsd3_mknodargs *argp,
|| (argp->ftype == NF3BLK && argp->major >= MAX_BLKDEV)
|| argp->minor > 0xFF)
RETURN_STATUS(nfserr_inval);
rdev = ((argp->major) << 8) | (argp->minor);
rdev = MKDEV(argp->major, argp->minor);
} else
if (argp->ftype != NF3SOCK && argp->ftype != NF3FIFO)
RETURN_STATUS(nfserr_inval);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment