Charles (Chas) Williams 31ec57cb6b bnx2x: fix resource allocattion error handling
bnx2x_loop_obtain_resources() returns a struct containing the status and
the error message.  If bnx2x_do_req4pf() fails, it shouldn't return both
of these fields set to 0 indicating failure and no error.

Further, bnx2x_do_req4pf() needs to be able fail and return NO_RESOURCES
so that bnx2x_loop_obtain_resources() can negotiate reduced resource
requirments.  This requires additional checking around bnx2x_do_req4pf().

Fixes: 540a211084a7 ("bnx2x: driver core")

Signed-off-by: Chas Williams <3chas3@gmail.com>
Acked-by: Rasesh Mody <rasesh.mody@qlogic.com>
2016-03-16 16:50:23 +01:00
..
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2016-03-16 16:49:15 +01:00
2016-03-16 16:49:15 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:58:10 +01:00
2015-12-13 01:55:12 +01:00