[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <31808.1557684645@warthog.procyon.org.uk>
Date: Sun, 12 May 2019 19:10:45 +0100
From: David Howells <dhowells@...hat.com>
To: wharms@....de
Cc: dhowells@...hat.com, colin.king@...onical.com, joe@...ches.com,
jaltman@...istor.com, linux-afs@...ts.infradead.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] afs: Fix afs_xattr_get_yfs() to not try freeing an error value
walter harms <wharms@....de> wrote:
> > + ret = dsize;
> > + if (size > 0) {
> > + if (dsize > size) {
> > + ret = -ERANGE;
> > + goto error_key;
> > }
> > + memcpy(buffer, data, dsize);
> > }
> >
>
> i am confused: if size is <= 0 then the error is in dsize ?
See this bit, before that hunk:
> + if (ret < 0)
> + goto error_key;
David
Powered by blists - more mailing lists