]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Only cancel the PPS workqueue if it exists
authorMartin Habets <mhabets@solarflare.com>
Thu, 21 Nov 2019 17:52:15 +0000 (17:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 20:06:06 +0000 (12:06 -0800)
commit828956fd0ab14de09da5345994454a5d493354a8
treee5ee57143dccb75b9a518101f2688a13f974e6e0
parent9f432c5b4b8f84b6781b1ce3346aa189a829d973
sfc: Only cancel the PPS workqueue if it exists

The workqueue only exists for the primary PF. For other functions
we hit a WARN_ON in kernel/workqueue.c.

Fixes: 384cb26e9aa7 ("sfc: Add support for IEEE-1588 PTP")
Signed-off-by: Martin Habets <mhabets@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ptp.c