vmxnet3: Fix memory leaks in rx path (fwd)
authorShreyas Bhatewara <sbhatewara@vmware.com>
Fri, 19 Jun 2015 20:37:03 +0000 (13:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2015 13:26:00 +0000 (06:26 -0700)
commitc41fcce997d2caa039a46495d40423348c51ad61
tree35437d5c46e22fdc34f12ca2627bf0f4a1e6ad6a
parente9ba47bfe381888d8dc79123a20b2ec8b6751a47
vmxnet3: Fix memory leaks in rx path (fwd)

If rcd length was zero, the page used for frag was not being released. It
was being replaced with a newly allocated page. This change takes care
of that memory leak.

Signed-off-by: Guolin Yang <gyang@vmware.com>
Signed-off-by: Shreyas N Bhatewara <sbhatewara@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c