[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+h21hr7whb1yk-W-81neG5kRcJR9iR70wzu93nLA_sjeT+ruQ@mail.gmail.com>
Date: Wed, 17 Jul 2019 20:58:28 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: Wei Yongjun <weiyongjun1@...wei.com>
Cc: Andrew Lunn <andrew@...n.ch>,
Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
netdev <netdev@...r.kernel.org>, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] net: dsa: sja1105: Fix missing unlock on error in sk_buff()
On Wed, 17 Jul 2019 at 09:24, Wei Yongjun <weiyongjun1@...wei.com> wrote:
>
> Add the missing unlock before return from function sk_buff()
> in the error handling case.
>
> Fixes: f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
Reviewed-by: Vladimir Oltean <olteanv@...il.com>
> net/dsa/tag_sja1105.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/net/dsa/tag_sja1105.c b/net/dsa/tag_sja1105.c
> index 1d96c9d4a8e9..26363d72d25b 100644
> --- a/net/dsa/tag_sja1105.c
> +++ b/net/dsa/tag_sja1105.c
> @@ -216,6 +216,7 @@ static struct sk_buff
> if (!skb) {
> dev_err_ratelimited(dp->ds->dev,
> "Failed to copy stampable skb\n");
> + spin_unlock(&sp->data->meta_lock);
> return NULL;
> }
> sja1105_transfer_meta(skb, meta);
>
>
>
Powered by blists - more mailing lists