]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Free any held skb that should have been timestamped on remove
authorMatthew Vick <matthew.vick@intel.com>
Thu, 13 Dec 2012 07:20:37 +0000 (07:20 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 18 Jan 2013 12:58:15 +0000 (04:58 -0800)
commita5857c24c80f7a410a707f6d6dc6bc77f7ce41ac
tree0219e7f9bdf0bc00c740b05571eefbebfd881a70
parent10aa912020036c5a1d53453e92f4d13a7212dcd1
igb: Free any held skb that should have been timestamped on remove

To prevent a race condition where an skb has been saved to return the Tx
timestamp later and the driver is removed, add a check to determine if we
have an skb stored and, if so, free it.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Matthew Vick <matthew.vick@intel.com>
Acked-by: Jacob Keller <Jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_ptp.c