Re: [PATCH net] net: cpsw: fix NULL pointer exception in the probe error path

2019-08-21 Thread David Miller
From: Antoine Tenart 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

Re: [PATCH net] net: cpsw: fix NULL pointer exception in the probe error path

2019-08-21 Thread Grygorii Strashko
On 21/08/2019 17:41, Antoine Tenart wrote: 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

[PATCH net] net: cpsw: fix NULL pointer exception in the probe error path

2019-08-21 Thread Antoine Tenart
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