search for: 40ecb2b

Displaying 3 results from an estimated 3 matches for "40ecb2b".

Did you mean: 400c9b2b
2016 Jun 27
2
[PATCH] virtio: Return correct errno for function init_vq's failure
...Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> --- drivers/block/virtio_blk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 42758b5..40ecb2b 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -393,11 +393,10 @@ static int init_vq(struct virtio_blk *vblk) if (err) num_vqs = 1; + err = -ENOMEM; vblk->vqs = kmalloc(sizeof(*vblk->vqs) * num_vqs, GFP_KERNEL); - if (!vblk->vqs) { - err = -ENOMEM; +...
2016 Jun 27
2
[PATCH] virtio: Return correct errno for function init_vq's failure
...Signed-off-by: Minfei Huang <mnghuan at gmail.com> Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> --- drivers/block/virtio_blk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 42758b5..40ecb2b 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c @@ -393,11 +393,10 @@ static int init_vq(struct virtio_blk *vblk) if (err) num_vqs = 1; + err = -ENOMEM; vblk->vqs = kmalloc(sizeof(*vblk->vqs) * num_vqs, GFP_KERNEL); - if (!vblk->vqs) { - err = -ENOMEM; +...
2016 Jul 06
0
[PATCH] virtio: Return correct errno for function init_vq's failure
...ghuan at gmail.com> > Signed-off-by: Minfei Huang <minfei.hmf at alibaba-inc.com> > --- > drivers/block/virtio_blk.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c > index 42758b5..40ecb2b 100644 > --- a/drivers/block/virtio_blk.c > +++ b/drivers/block/virtio_blk.c > @@ -393,11 +393,10 @@ static int init_vq(struct virtio_blk *vblk) > if (err) > num_vqs = 1; > > + err = -ENOMEM; > vblk->vqs = kmalloc(sizeof(*vblk->vqs) * num_vqs, GFP_KERNEL); >...