[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200108.160405.1403964084544750153.davem@davemloft.net>
Date: Wed, 08 Jan 2020 16:04:05 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: dan.carpenter@...cle.com
Cc: mkubecek@...e.cz, f.fainelli@...il.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] ethtool: potential NULL dereference in
strset_prepare_data()
From: Dan Carpenter <dan.carpenter@...cle.com>
Date: Wed, 8 Jan 2020 08:42:36 +0300
> Smatch complains that the NULL checking isn't done consistently:
>
> net/ethtool/strset.c:253 strset_prepare_data()
> error: we previously assumed 'dev' could be null (see line 233)
>
> It looks like there is a missing return on this path.
>
> Fixes: 71921690f974 ("ethtool: provide string sets with STRSET_GET request")
> Signed-off-by: Dan Carpenter <dan.carpenter@...cle.com>
Applied.
Powered by blists - more mailing lists