]> git.baikalelectronics.ru Git - kernel.git/commit
ata: sata_dwc_460ex: No need to call phy_exit() befre phy_init()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Jul 2021 12:51:30 +0000 (15:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Sep 2021 10:26:30 +0000 (12:26 +0200)
commit4744fa4d1229d7d30139819d04710eeaa42d5dee
treedcc5e2cba9780ea7550cd6c08d6d9c2dd40ff3eb
parent2882e9ac652ab70e229ebc846d09606974e06c0b
ata: sata_dwc_460ex: No need to call phy_exit() befre phy_init()

[ Upstream commit 3ad4a31620355358316fa08fcfab37b9d6c33347 ]

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.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210727125130.19977-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ata/sata_dwc_460ex.c