diff options
author | David B. Robins <linux@davidrobins.net> | 2015-09-30 16:20:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-05 03:31:27 -0700 |
commit | f6194bcf03e40bc6b6094f11289d87b605fb326d (patch) | |
tree | 6d816a477b38af6e4cce7cda214fc17589c0b57a /drivers/net/ethernet | |
parent | Merge tag 'linux-can-fixes-for-4.3-20150930' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can (diff) | |
download | linux-dev-f6194bcf03e40bc6b6094f11289d87b605fb326d.tar.xz linux-dev-f6194bcf03e40bc6b6094f11289d87b605fb326d.zip |
net: usb: asix: Fix crash on skb alloc failure
If asix_rx_fixup_internal() fails to allocate rx->ax_skb, it will return
but not clear rx->size. rx points to driver private data. A later call
assumes that nonzero size means ax_skb was allocated and passes a null
ax_skb to skb_put. Changed allocation failure return to clear size first.
Found testing board with AX88772B devices.
Signed-off-by: David B. Robins <linux@davidrobins.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions