diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-14 00:50:45 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-14 00:51:37 (GMT) |
commit | c978e7bb77dfd2cd3d1f547fa4e395cfe47f02b2 (patch) | |
tree | b77cb1058d7821a9cdb8fcc7a8d6d3759f63743e /drivers/net/usb | |
parent | ab60707ffe9920b66b4fff5181b44b14cd091472 (diff) | |
download | linux-fsl-qoriq-c978e7bb77dfd2cd3d1f547fa4e395cfe47f02b2.tar.xz |
hisax: Fix unchecked alloc_skb() return.
Jesper Juhl noticed that l2_pull_iqueue() does not
check to see if alloc_skb() fails.
Fix this by first trying to reallocate the headroom
if necessary, rather than later after we've made hard
to undo state changes.
Reported-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
0 files changed, 0 insertions, 0 deletions