diff --git a/net/9p/protocol.c b/net/9p/protocol.c index 931ea00c4fedb9a8a2c4d2ae9a1f24d7e51d7d04..4a1e1dd30b52fd04abef83272567a1975a840e0f 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, *sptr = kmalloc(len + 1, GFP_NOFS); if (*sptr == NULL) { - errcode = -EFAULT; + errcode = -ENOMEM; break; } if (pdu_read(pdu, *sptr, len)) {