]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/fman: Fix missing put_device() call in fman_port_probe
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 30 Dec 2021 12:26:27 +0000 (12:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Dec 2021 13:34:06 +0000 (13:34 +0000)
commitad783486a66a441abea9a4c0d35c49898b73ca32
tree446674700927f6db3fb07eeeb2646a7ed3376dcf
parentc2c71745455b2c50021e90a97d72682c5f073940
fsl/fman: Fix missing put_device() call in fman_port_probe

The reference taken by 'of_find_device_by_node()' must be released when
not needed anymore.
Add the corresponding 'put_device()' in the and error handling paths.

Fixes: 5f696b62590c ("fsl/fman: Add FMan Port Support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_port.c