[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <26840.1557644218@warthog.procyon.org.uk>
Date: Sun, 12 May 2019 07:56:58 +0100
From: David Howells <dhowells@...hat.com>
To: Joe Perches <joe@...ches.com>
Cc: dhowells@...hat.com, Colin King <colin.king@...onical.com>,
linux-afs@...ts.infradead.org, kernel-janitors@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] afs: remove redundant assignment to variable ret
Joe Perches <joe@...ches.com> wrote:
> @@ -71,11 +71,9 @@ static int afs_xattr_get_acl(const struct xattr_handler *handler,
> if (ret == 0) {
> ret = acl->size;
> if (size > 0) {
> - ret = -ERANGE;
> if (acl->size > size)
> return -ERANGE;
> memcpy(buffer, acl->data, acl->size);
> - ret = acl->size;
> }
> kfree(acl);
> }
This is also the wrong solution. See my reply to Colin.
David
Powered by blists - more mailing lists