aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDavid B. Robins <[email protected]>2015-09-30 20:20:04 +0000
committerDavid S. Miller <[email protected]>2015-10-05 10:31:27 +0000
commitf6194bcf03e40bc6b6094f11289d87b605fb326d (patch)
tree6d816a477b38af6e4cce7cda214fc17589c0b57a /net/unix/af_unix.c
parentMerge tag 'linux-can-fixes-for-4.3-20150930' of git://git.kernel.org/pub/scm/... (diff)
downloadkernel-f6194bcf03e40bc6b6094f11289d87b605fb326d.tar.gz
kernel-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions