Re: [bug report] block: fix leaking page ref on truncated direct io

Keith Busch
2022-07-12T19:20:11Z

On Tue, Jul 12, 2022 at 11:52:53AM +0300, Dan Carpenter wrote:
> Hello Keith Busch,
>
> The patch 7b1ccdf617ca: "block: fix leaking page ref on truncated
> direct io" from Jul 5, 2022, leads to the following Smatch static
> checker warning:
>
> block/bio.c:1254 __bio_iov_iter_get_pages()
> error: uninitialized symbol 'i'.

Yeah, this one was not ready to be merged into any staging trees. One of the
build-bots even flagged this patch hours after it was initially posted.

I've a v2 posted with the appropriate correction, and I'll sort it out with the
maintainers on next steps.