cxgbe: fix memory leak after initialization failure
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Fri, 12 Feb 2016 11:45:30 +0000 (17:15 +0530)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 15:54:13 +0000 (16:54 +0100)
commit1c1789ccb329df1cfd4d299b8c9898bd2fd2f38b
treea27c454fb16bdd7f3cc900bce7768866723f4acf
parent5a9e303a389fae047c6904609d798f7e9f130faa
cxgbe: fix memory leak after initialization failure

Add missing code to free adapter when the device initialization fails.

Fixes: 8318984927ff ("cxgbe: add pmd skeleton")

Reported-by: Seth Arnold <seth.arnold@canonical.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Kumar Sanghvi <kumaras@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c