mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
net: mhi_net: Update the transmit handler prototype
Update the function prototype of mhi_ndo_xmit to match
ndo_start_xmit. This otherwise leads to run time failures when
CFI is enabled in kernel.
Fixes: 3ffec6a14f
("net: Add mhi-net driver")
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
45deacc731
commit
2214fb5300
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ static int mhi_ndo_stop(struct net_device *ndev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int mhi_ndo_xmit(struct sk_buff *skb, struct net_device *ndev)
|
static netdev_tx_t mhi_ndo_xmit(struct sk_buff *skb, struct net_device *ndev)
|
||||||
{
|
{
|
||||||
struct mhi_net_dev *mhi_netdev = netdev_priv(ndev);
|
struct mhi_net_dev *mhi_netdev = netdev_priv(ndev);
|
||||||
const struct mhi_net_proto *proto = mhi_netdev->proto;
|
const struct mhi_net_proto *proto = mhi_netdev->proto;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue