diff options
author | David S. Miller <davem@davemloft.net> | 2014-08-27 17:05:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-27 17:05:53 -0700 |
commit | c2c0e8b2b88cac379b2a2167b448000dedd2596a (patch) | |
tree | de123ea72ffe5f4a6cdf160b8a2b7a135c0c516e /drivers/net/ethernet/adi | |
parent | 23d2d9a630b98a554cc328c6b69c56fd285e0129 (diff) | |
download | linux-stable-c2c0e8b2b88cac379b2a2167b448000dedd2596a.tar.gz linux-stable-c2c0e8b2b88cac379b2a2167b448000dedd2596a.tar.bz2 linux-stable-c2c0e8b2b88cac379b2a2167b448000dedd2596a.zip |
f_ncm: Don't use netdev_start_xmit().
Unfortunately, the USB gadget layer has this weird things where NULL
skbs are passed into ops->ndo_start_xmit() in order to trigger the
dev->wrap() calls to build packets.
This is completely outside of the allowable range of sane arguments
for the ndo_start_xmit method. All invocations of ndo_start_xmit()
should be with non-NULL SKB arguments.
Put back the direct call, but with a comment explaining how this
is not acceptable in the long term.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adi')
0 files changed, 0 insertions, 0 deletions