NET: sa11x0-ir: fix leak of tx skb
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 8 Jan 2012 15:38:15 +0000 (15:38 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:37:53 +0000 (15:37 +0000)
commitba84525bd9015e7dd20f7c97a2a96b0a238b0223
tree1d1ff025ff9793cee4ae7e8bebec0837cff274fc
parent885767ca4ce0800c5d02eb66cc10a0494b7bf312
NET: sa11x0-ir: fix leak of tx skb

Ensure that we unmap and free a pending transmit skb when the interface
is stopped.  We rearrange the code a little bit to give all places a
similar layout when freeing the skb in both the completion and interface
stop paths - this gives some consistency to the code.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/irda/sa1100_ir.c