diff options
Diffstat (limited to 'net/9p/protocol.c')
-rw-r--r-- | net/9p/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 931ea00c4fed..4a1e1dd30b52 100644 --- a/net/9p/protocol.c +++ b/net/9p/protocol.c | |||
@@ -156,7 +156,7 @@ p9pdu_vreadf(struct p9_fcall *pdu, int proto_version, const char *fmt, | |||
156 | 156 | ||
157 | *sptr = kmalloc(len + 1, GFP_NOFS); | 157 | *sptr = kmalloc(len + 1, GFP_NOFS); |
158 | if (*sptr == NULL) { | 158 | if (*sptr == NULL) { |
159 | errcode = -EFAULT; | 159 | errcode = -ENOMEM; |
160 | break; | 160 | break; |
161 | } | 161 | } |
162 | if (pdu_read(pdu, *sptr, len)) { | 162 | if (pdu_read(pdu, *sptr, len)) { |