]> Pileus Git - ~andy/linux/commit
bnx2x: prevent masking error from cnic
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 23 Sep 2013 07:12:53 +0000 (10:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Sep 2013 20:17:05 +0000 (16:17 -0400)
commitd9d81862671a7d139a7944090a7fe4647fc8f8d8
treef5f4ea0b8ef38819c146a3e031967d04ee643afd
parent717fa2b9012c980f5578bb406d21efe5c2ea3ed7
bnx2x: prevent masking error from cnic

During error flows while loading cnic the return value was incorrectly replaced
by that of bnx2x_set_real_num_queues(); If that function was to finish
successfully then the cnic would have mistakenly thought the load ended
successfully, causing issues (& panics) later on.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c