]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf633e07db292551ae1d5c3ab4714d4858fb210ee
tree1d1ff025ff9793cee4ae7e8bebec0837cff274fc
parente419249080c32bfffe7835acc0e5eef93e08eff6
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