[PATCH] storvsc: fix memory leak on ring buffer busy

Stephen Hemminger stephen at networkplumber.org
Wed Aug 30 15:11:01 UTC 2017


On Tue, 29 Aug 2017 21:31:11 -0400
"Martin K. Petersen" <martin.petersen at oracle.com> wrote:

> Long,
> 
> > When storvsc is sending I/O to Hyper-v, it may allocate a bigger
> > buffer descriptor for large data payload that can't fit into a
> > pre-allocated buffer descriptor. This bigger buffer is freed on return
> > path.
> >
> > If I/O request to Hyper-v fails due to ring buffer busy, the storvsc
> > allocated buffer descriptor should also be freed.  
> 
> Which kernel version is this patch aimed at?
> 

Looks like this an old issue. Probably should add

Fixes: be0cf6ca301c ("scsi: storvsc: Set the tablesize based on the information given by the host")


More information about the devel mailing list