From: Richard Weinberger <richard@nod.at>
To: kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 1/2] um: vector_kern: Unlock on error in vector_net_open()
Date: Mon, 11 Dec 2017 09:33:37 +0000 [thread overview]
Message-ID: <3254171.LO6pLlHuPk@blindfold> (raw)
In-Reply-To: <20171209114940.fsi7jbxd7zbhhu74@mwanda>
Anton,
Am Samstag, 9. Dezember 2017, 18:09:17 CET schrieb Anton Ivanov:
> Thanks,
>
> I guess I missed that one.
>
> A.
>
> On 09/12/17 11:49, Dan Carpenter wrote:
> > We need to unlock and restore IRQs on this error path.
> >
> > Fixes: ad1f62ab2bd4 ("High Performance UML Vector Network Driver")
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> >
> > diff --git a/arch/um/drivers/vector_kern.c b/arch/um/drivers/vector_kern.c
> > index d1d53015d572..bb83a2d22ac2 100644
> > --- a/arch/um/drivers/vector_kern.c
> > +++ b/arch/um/drivers/vector_kern.c
> > @@ -1156,8 +1156,10 @@ static int vector_net_open(struct net_device *dev)
> >
> > struct vector_device *vdevice;
> >
> > spin_lock_irqsave(&vp->lock, flags);
> >
> > - if (vp->opened)
> > + if (vp->opened) {
> > + spin_unlock_irqrestore(&vp->lock, flags);
> >
> > return -ENXIO;
> >
> > + }
> >
> > vp->opened = true;
> > spin_unlock_irqrestore(&vp->lock, flags);
Please review/ack these patches.
Thanks,
//richard
prev parent reply other threads:[~2017-12-11 9:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 11:49 [PATCH 1/2] um: vector_kern: Unlock on error in vector_net_open() Dan Carpenter
2017-12-09 17:09 ` Anton Ivanov
2017-12-11 9:33 ` Richard Weinberger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3254171.LO6pLlHuPk@blindfold \
--to=richard@nod.at \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).