Re: [PATCH] orangefs: remove redundant assignment to variable buffer_index

Dan Carpenter
2019-05-21T15:03:11Z

On Thu, May 16, 2019 at 12:06:31PM -0400, Mike Marshall wrote:
> Hi Colin...
>
> Thanks for the patch. Before I initialized buffer_index, Dan Williams sent
> in a warning that a particular error path could try to use ibuffer_index
> uninitialized. I could induce the problem he described with one
> of the xfstests resulting in a crashed kernel. I will try to refactor
> the code to fix the problem some other way than initializing
> buffer_index in the declaration.
>

The only explanation I can think of is that you guys are discussing
different code. :P

regards,
dan carpenter