fix memory allocation error

This commit is contained in:
Laurent
2021-01-10 21:41:22 +01:00
parent 0dab0871c5
commit 3b0c43c04b
7 changed files with 40 additions and 34 deletions
+4
View File
@@ -297,7 +297,11 @@ int nas_change_mtu(struct net_device *dev, int mtu)
}
//---------------------------------------------------------------------------
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,7,0)
void nas_tx_timeout(struct net_device *dev)
#else
void nas_tx_timeout(struct net_device *dev, unsigned int x)
#endif
{
//---------------------------------------------------------------------------
// Transmitter timeout, serious problems.