]> git.baikalelectronics.ru Git - kernel.git/commit
cpsw: fix leaking IO mappings
authorRichard Cochran <richardcochran@gmail.com>
Fri, 2 Nov 2012 22:25:30 +0000 (22:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 19:37:36 +0000 (15:37 -0400)
commit138ae4cb05f72a554a86bcfaac9ba9e6c08ceb34
tree1c9bc1ab3735c8e322393112b9b89e764ab747cd
parentc6fb34895e8f37beb6078301156639c537da2cd0
cpsw: fix leaking IO mappings

The CPSW driver remaps two different IO regions, but fails to unmap them
both. This patch fixes the issue by calling iounmap in the appropriate
places.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c