]> git.baikalelectronics.ru Git - uboot.git/commit
net: smsc95xx: Correct free_pkt() implementation
authorSimon Glass <sjg@chromium.org>
Wed, 5 Apr 2017 22:23:28 +0000 (16:23 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 10 May 2017 00:17:24 +0000 (20:17 -0400)
commitdfc16cdddcdca848c8f49ebbe4c400b717d4f7e1
treefdac265d99d9b6b2b552b252039f7f9b17798978
parenta37ccc002552d81b51836559c8d16eaeb08f5f3f
net: smsc95xx: Correct free_pkt() implementation

On further review this returns the wrong packet length from the driver.
It may not be noticed since protocols will take care of it. Fix it by
subtracting the header length from the packet length returned.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/eth/smsc95xx.c