# Re: \[PATCH v1 1/1\] ata: sata\_dwc\_460ex: No need to call phy\_exit() befre phy\_init()

- From: Jens Axboe \<axboe@kernel.dk\>
- Date: 2021-07-28 01:30:41 
- List: linux-ide
- Page: https://ratatoskr.run/linux-ide/2021/07/1460265
- Thread: https://ratatoskr.run/linux-ide/2021/07/1459431/t.md

```text
On 7/27/21 6:51 AM, Andy Shevchenko wrote:
> Last change to device managed APIs cleaned up error path to simple phy_exit()
> call, which in some cases has been executed with NULL parameter. This per se
> is not a problem, but rather logical misconception: no need to free resource
> when it's for sure has not been allocated yet. Fix the driver accordingly.

Applied for 5.15, thanks.

-- 
Jens Axboe

```
