net/enic: fix freeing memory for descriptor ring
authorNelson Escobar <neescoba@cisco.com>
Thu, 22 Sep 2016 17:02:45 +0000 (10:02 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000 (12:27 +0200)
commitd10798072c5cb3ed4a7c636a003285120b2f3ce7
tree0475a5e19f840907e72333d4ba61693e1d926836
parent53fa8cc0d56d0f7e700fdcddfb4fa45c8d2b428d
net/enic: fix freeing memory for descriptor ring

The function vnic_dev_free_desc_ring() didn't actually free memory. Fix
this by first changing vnic_dev_alloc_desc_ring() to use the common
allocation function, then in vnic_dev_free_desc_ring call the common
free function.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
drivers/net/enic/base/vnic_dev.c