net/qede/base: handle the error condition properly
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:51:27 +0000 (18:51 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commitc83cbe7130656a65b16078bfb1c008f9a15a4a9b
tree41ad2b47d1cc90de5a730a9a9abbc76c9a517e64
parenteafbc6fc52c753991f6132988be71cf56955ad7a
net/qede/base: handle the error condition properly

If for some reason the send message from VF to PF times out, don't bail out
right away without taking proper cleanup action. The goto statement calls
ecore_vf_pf_req_end() which will unlock the mutex previously held.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_vf.c