]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: mvpp2: fix possible memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Sat, 1 Nov 2014 11:29:34 +0000 (16:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Nov 2014 19:11:50 +0000 (15:11 -0400)
commit437374735c0055433f8300ba59f8cf7214c58ad3
tree4b560e06ea08cedae343f791808f27b7d910fa63
parentec1f1276022e4e3ca40871810217d513e39ff250
net: mvpp2: fix possible memory leak

we are allocating memory using kzalloc for struct mvpp2_prs_entry,
but later when we are getting error we were just returning the error
value without releasing the memory.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c