net/qede: fix resource leak
authorYong Wang <wang.yong19@zte.com.cn>
Wed, 30 Nov 2016 12:32:09 +0000 (07:32 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:39:28 +0000 (19:39 +0100)
commit7bb4b07057a7c129ce7eec65af56e0bfb7f675b5
tree30b72fbe0ccc69f98bbbfc63d0bd5777403ea3df
parent8d63b2cf6b2a7baf607f251bf2b06eaf35faebee
net/qede: fix resource leak

Current code does not close 'fd' on function exit, leaking resources.

Fixes: 2ea6f76aff40 ("qede: add core driver")

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/qede/qede_main.c