From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvKSQ-0000Es-L5 for barebox@lists.infradead.org; Thu, 30 Aug 2018 10:45:48 +0000 From: Sascha Hauer Date: Thu, 30 Aug 2018 12:45:25 +0200 Message-Id: <20180830104527.4057-4-s.hauer@pengutronix.de> In-Reply-To: <20180830104527.4057-1-s.hauer@pengutronix.de> References: <20180830104527.4057-1-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/5] fs: tftp: fix return value To: Barebox List When tftp_get_inode() fails it is a sign for a out of memory situtation rather than an indicator for no space left on the filesystem, so return -ENOMEM. Signed-off-by: Sascha Hauer --- fs/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tftp.c b/fs/tftp.c index bcb95bc1db..0baf0c2890 100644 --- a/fs/tftp.c +++ b/fs/tftp.c @@ -653,7 +653,7 @@ static struct dentry *tftp_lookup(struct inode *dir, struct dentry *dentry, inode = tftp_get_inode(dir->i_sb, dir, S_IFREG | S_IRWXUGO); if (!inode) - return ERR_PTR(-ENOSPC); + return ERR_PTR(-ENOMEM); d_add(dentry, inode); -- 2.18.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox