mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
usbnet: fix CFI checking failure
Correct function usb_ether_xmit return value type to match the prototype of the member ndo_start_xmit in struct net_device_ops to avoid CFI checking failure. Change-Id: I8439e967ee824bb5f0ac8447d79ae066379a6465 Signed-off-by: yanyh2 <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/1818255 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu <liuyc20@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8f7d8b9adb
commit
70bbf3279e
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ struct usb_request *usb_get_xmit_request(int stop_flag, struct net_device *dev)
|
|||
return req;
|
||||
}
|
||||
|
||||
static int usb_ether_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
static netdev_tx_t usb_ether_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct usbnet_context *context = netdev_priv(dev);
|
||||
struct usb_request *req;
|
||||
|
|
|
|||
Loading…
Reference in a new issue