[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180728.190809.1376213313357548269.davem@davemloft.net>
Date: Sat, 28 Jul 2018 19:08:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: andrew@...n.ch
Cc: vasilyev@...ras.ru, f.fainelli@...il.com, rjui@...adcom.com,
sbranden@...adcom.com, jonmason@...adcom.com,
bcm-kernel-feedback-list@...adcom.com, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
ldv-project@...uxtesting.org
Subject: Re: [PATCH] net: mdio-mux: bcm-iproc: fix wrong getter and setter
pair
From: Andrew Lunn <andrew@...n.ch>
Date: Fri, 27 Jul 2018 18:17:07 +0200
> On Fri, Jul 27, 2018 at 06:57:47PM +0300, Anton Vasilyev wrote:
>> mdio_mux_iproc_probe() uses platform_set_drvdata() to store md pointer
>> in device, whereas mdio_mux_iproc_remove() restores md pointer by
>> dev_get_platdata(&pdev->dev). This leads to wrong resources release.
>>
>> The patch replaces getter to platform_get_drvdata.
>>
>> Signed-off-by: Anton Vasilyev <vasilyev@...ras.ru>
>
> Fixes: 98bc865a1ec8 ("net: mdio-mux: Add MDIO mux driver for iProc SoCs")
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists