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)
commitc978e7bb77dfd2cd3d1f547fa4e395cfe47f02b2
treeb77cb1058d7821a9cdb8fcc7a8d6d3759f63743e
parentab60707ffe9920b66b4fff5181b44b14cd091472
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>
drivers/isdn/hisax/isdnl2.c