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)
commit118133e6580a0c912cda86109b6468b5ffe73f1c
tree437d85afc373577934e168b9a6dc104fec7b155e
parente3cb78c772de593afa720687ce3abbed8d93b0c3
netdev: bfin_mac: fix memory leak when freeing dma descriptors

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>
drivers/net/bfin_mac.c