diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/9p/trans_fd.c | 4 | ||||
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c index 3ffda1b3799b..9321a7763067 100644 --- a/net/9p/trans_fd.c +++ b/net/9p/trans_fd.c | |||
@@ -244,10 +244,10 @@ p9_fd_poll(struct p9_client *client, struct poll_table_struct *pt) | |||
244 | if (!ts) | 244 | if (!ts) |
245 | return -EREMOTEIO; | 245 | return -EREMOTEIO; |
246 | 246 | ||
247 | if (!ts->rd->f_op || !ts->rd->f_op->poll) | 247 | if (!ts->rd->f_op->poll) |
248 | return -EIO; | 248 | return -EIO; |
249 | 249 | ||
250 | if (!ts->wr->f_op || !ts->wr->f_op->poll) | 250 | if (!ts->wr->f_op->poll) |
251 | return -EIO; | 251 | return -EIO; |
252 | 252 | ||
253 | ret = ts->rd->f_op->poll(ts->rd, pt); | 253 | ret = ts->rd->f_op->poll(ts->rd, pt); |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index f94567b45bb3..d0d14a04dce1 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -519,8 +519,8 @@ static int __rpc_create_common(struct inode *dir, struct dentry *dentry, | |||
519 | d_add(dentry, inode); | 519 | d_add(dentry, inode); |
520 | return 0; | 520 | return 0; |
521 | out_err: | 521 | out_err: |
522 | printk(KERN_WARNING "%s: %s failed to allocate inode for dentry %s\n", | 522 | printk(KERN_WARNING "%s: %s failed to allocate inode for dentry %pd\n", |
523 | __FILE__, __func__, dentry->d_name.name); | 523 | __FILE__, __func__, dentry); |
524 | dput(dentry); | 524 | dput(dentry); |
525 | return -ENOMEM; | 525 | return -ENOMEM; |
526 | } | 526 | } |
@@ -755,8 +755,8 @@ static int rpc_populate(struct dentry *parent, | |||
755 | out_bad: | 755 | out_bad: |
756 | __rpc_depopulate(parent, files, start, eof); | 756 | __rpc_depopulate(parent, files, start, eof); |
757 | mutex_unlock(&dir->i_mutex); | 757 | mutex_unlock(&dir->i_mutex); |
758 | printk(KERN_WARNING "%s: %s failed to populate directory %s\n", | 758 | printk(KERN_WARNING "%s: %s failed to populate directory %pd\n", |
759 | __FILE__, __func__, parent->d_name.name); | 759 | __FILE__, __func__, parent); |
760 | return err; | 760 | return err; |
761 | } | 761 | } |
762 | 762 | ||
@@ -852,8 +852,8 @@ out: | |||
852 | return dentry; | 852 | return dentry; |
853 | out_err: | 853 | out_err: |
854 | dentry = ERR_PTR(err); | 854 | dentry = ERR_PTR(err); |
855 | printk(KERN_WARNING "%s: %s() failed to create pipe %s/%s (errno = %d)\n", | 855 | printk(KERN_WARNING "%s: %s() failed to create pipe %pd/%s (errno = %d)\n", |
856 | __FILE__, __func__, parent->d_name.name, name, | 856 | __FILE__, __func__, parent, name, |
857 | err); | 857 | err); |
858 | goto out; | 858 | goto out; |
859 | } | 859 | } |