be2net: init (vf)_if_handle/vf_pmac_id to handle failure scenarios
authorSathya Perla <sathya.perla@emulex.com>
Thu, 10 Nov 2011 19:17:57 +0000 (19:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Nov 2011 22:59:35 +0000 (17:59 -0500)
commit30128031d71741ef7d0e32c345e3bf02aa8a0704
tree1ca0ba5c5c34c252c8bcfc8d53c82b19fa2e7d4c
parentd826eb14ecef3574b6b3be55e5f4329f4a76fbf3
be2net: init (vf)_if_handle/vf_pmac_id to handle failure scenarios

Initialize if_handle, vf_if_handle and vf_pmac_id with "-1" so that in
failure cases when be_clear() is called, we can skip over
if_destroy/pmac_del cmds if they have not been created.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_cmds.c
drivers/net/ethernet/emulex/benet/be_cmds.h
drivers/net/ethernet/emulex/benet/be_main.c