net: ti: icssg-prueth: Add missing icss_iep_put to error path
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 10 Nov 2023 16:13:02 +0000 (17:13 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2023 19:48:37 +0000 (19:48 +0000)
commite409d7346648c9acff84c3cc8d291767ee2d5326
treed1cf7574fe8482fa12178032b680907bc59a594b
parent719639853d88071dfdfd8d9971eca9c283ff314c
net: ti: icssg-prueth: Add missing icss_iep_put to error path

Analogously to prueth_remove, just also taking care for NULL'ing the
iep pointers.

Fixes: 186734c15886 ("net: ti: icssg-prueth: add packet timestamping and ptp support")
Fixes: 443a2367ba3c ("net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support")
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com>
Reviewed-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/icssg/icssg_prueth.c