Re: [PATCH 2/4] virtio_blk: Less function calls in init_vq() after error detection

2016-09-13 Thread Christian Borntraeger
On 09/13/2016 02:13 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 13 Sep 2016 13:20:44 +0200 > > The kfree() function was called in up to three cases > by the init_vq() function during error handling even if > the passed variable contained a null pointer. > > * Split a conditi

[PATCH 2/4] virtio_blk: Less function calls in init_vq() after error detection

2016-09-13 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 13 Sep 2016 13:20:44 +0200 The kfree() function was called in up to three cases by the init_vq() function during error handling even if the passed variable contained a null pointer. * Split a condition check for memory allocation failures. * Adjust jump targets a