netdev: bfin_mac: fix memory leak when freeing dma descriptors
authorSonic Zhang <sonic.zhang@analog.com>
Thu, 16 Jun 2011 12:31:58 +0000 (12:31 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Fri, 17 Jun 2011 04:19:09 +0000 (00:19 -0400)
The size of the desc array is not the size of the desc structure, so
when we try to free up things, we leak some parts.

Reported-by: Regis Dargent <rdargent@edevice.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>

No differences found