Re: + lib-scatterlist-fix-memory-leak-with-scsi-mq.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 28 Oct 2014 18:18:56 -0600 Jens Axboe <axboe@xxxxxxxxx> wrote:

> > diff -puN lib/scatterlist.c~lib-scatterlist-fix-memory-leak-with-scsi-mq lib/scatterlist.c
> > --- a/lib/scatterlist.c~lib-scatterlist-fix-memory-leak-with-scsi-mq
> > +++ a/lib/scatterlist.c
> > @@ -203,10 +203,10 @@ void __sg_free_table(struct sg_table *ta
> >  		}
> >  
> >  		table->orig_nents -= sg_size;
> > -		if (!skip_first_chunk) {
> > -			free_fn(sgl, alloc_size);
> > +		if (skip_first_chunk)
> >  			skip_first_chunk = false;
> > -		}
> > +		else
> > +			free_fn(sgl, alloc_size);
> >  		sgl = next;
> >  	}
> >  
> > _
> 
> I already queued this one up in for-linus.

I'd have known that if for-linus was in -next...
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]