lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20190821.140014.255300007478960933.davem@davemloft.net> Date: Wed, 21 Aug 2019 14:00:14 -0700 (PDT) From: David Miller <davem@...emloft.net> To: antoine.tenart@...tlin.com Cc: grygorii.strashko@...com, netdev@...r.kernel.org, linux-omap@...r.kernel.org, linux-kernel@...r.kernel.org, maxime.chevallier@...tlin.com Subject: Re: [PATCH net] net: cpsw: fix NULL pointer exception in the probe error path From: Antoine Tenart <antoine.tenart@...tlin.com> Date: Wed, 21 Aug 2019 16:41:23 +0200 > In certain cases when the probe function fails the error path calls > cpsw_remove_dt() before calling platform_set_drvdata(). This is an > issue as cpsw_remove_dt() uses platform_get_drvdata() to retrieve the > cpsw_common data and leds to a NULL pointer exception. This patches > fixes it by calling platform_set_drvdata() earlier in the probe. > > Fixes: 83a8471ba255 ("net: ethernet: ti: cpsw: refactor probe to group common hw initialization") > Reported-by: Maxime Chevallier <maxime.chevallier@...tlin.com> > Signed-off-by: Antoine Tenart <antoine.tenart@...tlin.com> Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists