@@ -1668,8 +1668,8 @@ v9fs_vfs_mknod_dotl(struct inode *dir, struct dentry *dent
}
name = (char *) dentry->d_name.name;
- err = p9_client_mknod_dotl(dfid, name, mode, new_encode_dev(rdev),
- gid, &qid);
+
+ err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid);
if (err < 0)
goto error;
@@ -1628,11 +1628,10 @@ int p9_client_mknod_dotl(struct p9_fid *fid, char *name,
clnt = fid->clnt;
P9_DPRINTK(P9_DEBUG_9P, ">>> TMKNOD fid %d name %s mode %d major %d "
"minor %d\n", fid->fid, name, mode, MAJOR(rdev), MINOR(rdev));
- req = p9_client_rpc(clnt, P9_TMKNOD, "dsddd", fid->fid, name, mode,
- rdev, gid);
+ req = p9_client_rpc(clnt, P9_TMKNOD, "dsdddd", fid->fid, name, mode,
+ MAJOR(rdev), MINOR(rdev), gid);
if (IS_ERR(req)) {
- err = PTR_ERR(req);
- goto error;
+ return PTR_ERR(req);
}
err = p9pdu_readf(req->rc, clnt->proto_version, "Q", qid);