rtlwifi: Avoid modifying skbs that are resubmitted
authorMike McCormack <[email protected]>
Mon, 6 Jun 2011 23:58:31 +0000 (08:58 +0900)
committerJohn W. Linville <[email protected]>
Tue, 7 Jun 2011 18:19:07 +0000 (14:19 -0400)
commit6633d649788e72400b02098bd389585e2c56a557
tree2312cd48f3f4b8871190df945af1c3c2c9c4be39
parent4fea2e0e59dab863a63fa1638b86d850896cd861
rtlwifi: Avoid modifying skbs that are resubmitted

In the case we fail to allocate a new skb, the old skb should
be resubmitted unmodified.

Fixes bug introduced in a9e12869758430424804.

Signed-off-by: Mike McCormack <[email protected]>
Acked-by: Larry Finger <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
drivers/net/wireless/rtlwifi/pci.c