]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Increment ptp refcount before use
authorSubbaraya Sundeep <sbhatta@marvell.com>
Fri, 7 Jan 2022 06:30:29 +0000 (12:00 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 14:04:19 +0000 (14:04 +0000)
commit2af0b1ed90a8bed07b15b775a140d6ecbea22746
tree1f2ab2ca1767c78714a2fa83f8d897e9a89d99f4
parentd9a7c4b6390bcddfb6fdadc2f29b0a2a56a2158f
octeontx2-af: Increment ptp refcount before use

Before using the ptp pci device by AF driver increment
the reference count of it.

Fixes: be9ca1d73770 ("octeontx2-af: Add PTP device id for CN10K and 95O silcons")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/ptp.c