[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180529180903.GB32763@redhat.com>
Date: Tue, 29 May 2018 14:09:03 -0400
From: Mike Snitzer <snitzer@...hat.com>
To: Colin King <colin.king@...onical.com>
Cc: Alasdair Kergon <agk@...hat.com>, dm-devel@...hat.com,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] dm writecache: fix missing goto in error handling
code
On Sun, May 27 2018 at 6:25pm -0400,
Colin King <colin.king@...onical.com> wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently, the -EFBIG error condition when n_bitmaps_bits is
> too large is falling through to the next statement and the
> error assignment to r is potentially being ignored. The code
> should be exiting to the error path via label 'bad'. Fix
> this by adding the missing goto statement.
>
> Detected by CoverityScan, CID#1469377 ("Unused value")
>
> Fixes: bb15b431d650 ("dm: add writecache target")
> Signed-off-by: Colin Ian King <colin.king@...onical.com>
Thanks, I've picked this up.
Powered by blists - more mailing lists