[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3d9f0933-cf49-48f9-8014-df6d4dc568dc@ti.com>
Date: Wed, 12 Mar 2025 15:34:08 +0530
From: "Malladi, Meghana" <m-malladi@...com>
To: Dan Carpenter <dan.carpenter@...aro.org>
CC: <netdev@...r.kernel.org>, "Anwar, Md Danish" <danishanwar@...com>
Subject: Re: [EXTERNAL] [bug report] net: ti: icss-iep: Add pwidth
configuration for perout signal
Hi Dan,
On 3/12/2025 2:00 PM, Dan Carpenter wrote:
> Hello Meghana Malladi, Commit e5b456a14215 ("net: ti: icss-iep: Add
> pwidth configuration for perout signal") from Mar 4, 2025 (linux-next),
> leads to the following Smatch static checker warning: drivers/net/
> ethernet/ti/icssg/icss_iep. c: 825 icss_iep_exit()
> ZjQcmQRYFpfptBannerStart
> This message was sent from outside of Texas Instruments.
> Do not click links or open attachments unless you recognize the source
> of this email and know the content is safe.
> Report Suspicious
> <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/G3vK!
> uldq91elFod7SsXEXBPp_9qX4ctECpS267LMjuddHxR5XHrYWmLvT3__LcAfcksmi66Dt81ZKpDRPzWAf4qxRVheEM2g0eVMTQ0PmIw$>
> ZjQcmQRYFpfptBannerEnd
>
> Hello Meghana Malladi,
>
> Commit e5b456a14215 ("net: ti: icss-iep: Add pwidth configuration for
> perout signal") from Mar 4, 2025 (linux-next), leads to the following
> Smatch static checker warning:
>
> drivers/net/ethernet/ti/icssg/icss_iep.c:825 icss_iep_exit()
> error: NULL dereference inside function icss_iep_perout_enable()
>
> drivers/net/ethernet/ti/icssg/icss_iep.c
> 815 {
> 816 if (iep->ptp_clock) {
> 817 ptp_clock_unregister(iep->ptp_clock);
> 818 iep->ptp_clock = NULL;
> 819 }
> 820 icss_iep_disable(iep);
> 821
> 822 if (iep->pps_enabled)
> 823 icss_iep_pps_enable(iep, false);
> 824 else if (iep->perout_enabled)
> --> 825 icss_iep_perout_enable(iep, NULL, false);
> ^^^^
> Originally icss_iep_perout_enable() just returned -ENOTSUPP but now it
> needs a valid "req" pointer.
Thanks for identifying this bug. I will post a fix for this shortly.
regards,
Meghana Malladi
> 826
> 827 return 0;
> 828 }
>
> regards,
> dan carpenter
>
Powered by blists - more mailing lists