hisax: Fix unchecked alloc_skb() return.
authorDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2011 00:50:45 +0000 (16:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2011 00:51:37 +0000 (16:51 -0800)
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>

No differences found